(org.netbeans.api.xmi.XMIReaderFactory)this.xmiReaderFactoryInstances.get(this.xmiReaderFactory);
if (factory == null)
{
if (this.xmiReaderFactory == null || this.xmiReaderFactory.trim().length() == 0)
{
throw new RepositoryFacadeException("No 'xmiReaderFactory' has been set");
}
Object instance = ClassUtils.loadClass(this.xmiReaderFactory).newInstance();
if (instance instanceof XMIReaderFactory)
{
factory = (XMIReaderFactory)instance;
this.xmiReaderFactoryInstances.put(
this.xmiReaderFactory,
factory);
}
else
{
throw new RepositoryFacadeException("The 'xmiReaderFactory' must be an instance of '" +
XMIReaderFactory.class.getName() + "'");
}
}
return factory;
}