public ServiceDescriptor lookupServiceDescriptor(ServiceType type, String name, Properties overrides) throws ServiceException
{
String key = new AbstractServiceDescriptor.Key(name, overrides).getKey();
// TODO If we want these descriptors loaded form Spring we need to change the key mechanism
// and the scope, and then deal with circular reference issues.
ServiceDescriptor sd = (ServiceDescriptor) registry.lookupObject(key);
synchronized (this)
{
if (sd == null)
{