@Override public Repository getUnderlyingRepository() throws RepositoryNotInitializedException { if (this.repository == null) { throw new RepositoryNotInitializedException("Null repository"); } return this.repository; }
} catch (NamingException e) { log.error("Unable to initialize repository: {}", e.getMessage(), e); throw new RepositoryNotInitializedException(e); } catch (RepositoryException e) { log.error("Unable to initialize repository: {}", e.getMessage(), e); throw new RepositoryNotInitializedException(e); } catch (TransformerFactoryConfigurationError e) { log.error("Unable to initialize repository: {}", e.getMessage(), e); throw new RepositoryNotInitializedException(e);
private void loadRepositories() throws Exception { final String path = magnoliaConfigurationProperties.getProperty(MagnoliaConfigurationProperties.MAGNOLIA_REPOSITORIES_CONFIG); if (path == null) { throw new RepositoryNotInitializedException("No value found for property " + MagnoliaConfigurationProperties.MAGNOLIA_REPOSITORIES_CONFIG + ": can not start repository.");