/** * Returns an instance of the repository registry. * * @return an instance of the repository registry * @throws IOException */ public synchronized RepositoryRegistry createRepositoryRegistry() throws IOException, NPandayRepositoryException { if ( repositoryRegistry.isEmpty() ) { repositoryRegistry.loadFromResource( "/META-INF/npanday/registry-config.xml", this.getClass() ); } return repositoryRegistry; } }