private void initializeRepositories(SnowOwlConfiguration configuration, Environment env) { final Stopwatch branchStopwatch = Stopwatch.createStarted(); LOG.debug(">>> Initializing branch and review services."); final DefaultRepositoryManager repositories = (DefaultRepositoryManager) env.service(RepositoryManager.class); RepositoryConfiguration repositoryConfig = configuration.getModuleConfig(RepositoryConfiguration.class); final ICDORepositoryManager cdoRepositoryManager = env.service(ICDORepositoryManager.class); for (String repositoryId : cdoRepositoryManager.uuidKeySet()) { Repository repo = repositories .prepareCreate(repositoryId, cdoRepositoryManager.getByUuid(repositoryId).getSnowOwlTerminologyComponentId()) .setMergeMaxResults(repositoryConfig.getMergeMaxResults()) .build(env); if (repo.health() == Health.GREEN) { LOG.info("Started repository '{}' with status '{}'", repo.id(), repo.health()); } else { LOG.warn("Started repository '{}' with status '{}'. Diagnosis: {}.", repo.id(), repo.health(), repo.diagnosis()); } } LOG.debug("<<< Branch and review services registered. [{}]", branchStopwatch); }