NamespaceComponents.instance().discover();
Repositories.instance().initialize();
this.repository = Repositories.instance().getImplementation(Schema2XMIGlobals.REPOSITORY_NAMESPACE_NETBEANSMDR);
if (repository == null)
{
throw new ModelProcessorException(
"No Repository could be found, please make sure you have a repository with namespace " + Schema2XMIGlobals.REPOSITORY_NAMESPACE_NETBEANSMDR +
" on your classpath");
}
this.repository.open();