I developed a filter and wanted to use it in the OCC extension

issing bean 'commerceWebServicesFilterChainListV2'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'commerceWebServicesFilterChainListV2' available
I guess the error is because commerceWebServicesFilterChainListV2 is declared in the web package and yocc extension is declaring in src package.
The question now is. What's the proper way to do this? besides not listenning to SAP and using the yoccaddon