public class SimpleServiceRegistryFactory implements ServiceRegistryFactory {
public ServiceRegistry newServiceRegistry() {
DelegatingServiceRegistry serviceRegistry = new DelegatingServiceRegistry();
ServiceEntryRegistry entryRegistryDelegate = newServiceEntryRegistry();
serviceRegistry.setEntryRegistryDelegate(entryRegistryDelegate);
InvokingServiceEventListenerRegistry listenerRegistryDelegate = newInvokingServiceEventListenerRegistry();
serviceRegistry.setListenerRegistryDelegate(listenerRegistryDelegate);
return serviceRegistry;