}
} else {
targetClass = null;
}
ServiceEndpointTargetSource targetSource = new ListBackedRegistryTargetSource(this.list, targetClass);
ProxyFactory proxyFactory = new ProxyFactory();
if (targetSource.getTargetClass() == null) {
//not proxying by class, so proxy by interface
ProxyFactorySourceUtils.addInterfaces(proxyFactory, proxyTypes);
}
afterInit(proxyFactory, targetSource);