public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
String moduleName = moduleName();
//only if there is a contribution end point corresponding with bean name do we register the service
ContributionEndpoint endPoint = ModuleContributionUtils.findContributionEndPoint(beanFactory, beanName);
if (endPoint != null) {
logger.info("Contributing bean " + beanName + " from module " + moduleName);
if (serviceRegistry != null) {
serviceRegistry.addService(beanName, moduleName, bean, beanClassLoader);