Object service,
List<String> tags,
Map<String, ?> attributes,
ClassLoader classLoader) {
BasicServiceRegistryReference serviceReference = null;
synchronized (registryLock) {
serviceReference = new BasicServiceRegistryReference(service, beanName,
moduleName, tags, attributes, classLoader);
services.put(beanName, serviceReference);
entities.put(service, beanName);
}