//only if there is a contribution end point corresponding with bean name do we register the service
NamedServiceEndpoint endPoint = SpringModuleServiceUtils.findServiceEndpoint(beanFactory, beanName);
if (hasRegisterableEndpoint(beanName, endPoint)) {
logger.info("Contributing bean " + beanName + " from module " + moduleName);
final ServiceBeanReference service = new StaticSpringServiceBeanReference(bean);
final ServiceRegistryEntry serviceReference = serviceRegistry.addService(beanName, moduleName, service, beanClassLoader);
referenceMap.put(beanName, serviceReference);
}
} else {