LOG.log(Level.INFO, "Loaded Catalogs: '" + this.catalogs + "'");
this.catalogRepository = catalogRepository;
}catch (Exception e) {
this.catalogs = backupCatalogs;
this.catalogRepository = backupRepository;
throw new CatalogServiceException("Failed to set CatalogRepository '" + catalogRepository + "', reverting back to original settings : " + e.getMessage(), e);
}finally {
this.catalogsLock.writeLock().unlock();
}
}else {
throw new CatalogServiceException("Cannot add NULL CatalogRepository to CatalogService, reverting back to original settings");
}
}