throw new SharedObjectCreateException("SharedObjectTypeDescription cannot be null"); //$NON-NLS-1$
SharedObjectTypeDescription cd = getDescription0(desc);
if (cd == null)
//throw new SharedObjectCreateException(Messages.SharedObjectFactory_Exception_Create_Shared_Objec + desc.getName() + Messages.SharedObjectFactory_Exception_Create_Shared_Object_Not_Found);
throw new SharedObjectCreateException("SharedObjectDescription named " + desc.getName() + " not found"); //$NON-NLS-1$ //$NON-NLS-2$
ISharedObjectInstantiator instantiator = null;
try {
instantiator = cd.getInstantiator();
} catch (Exception e) {
SharedObjectCreateException newexcept = new SharedObjectCreateException("createSharedObject exception with description" + desc, //$NON-NLS-1$
e);
dumpStack("Exception in createSharedObject", newexcept); //$NON-NLS-1$
throw newexcept;
}
if (instantiator == null)
//throw new SharedObjectCreateException(Messages.SharedObjectFactory_Exception_Create_Instantiator + cd.getName() + Messages.SharedObjectFactory_Exception_Create_Instantiator_Null);
throw new SharedObjectCreateException("Instantiator for SharedObjectDescription " + cd.getName() + " is null"); //$NON-NLS-1$ //$NON-NLS-2$
// Ask instantiator to actually create instance
return instantiator.createInstance(desc, args);
}