protected void releaseRepository(
     final Repository repository,
     final Configuration configuration,
     final CRepository repositoryModel)
     throws ConfigurationException {
   // release it
   runtimeConfigurationBuilder.releaseRepository(repository, configuration, repositoryModel);
 }
  protected Repository instantiateRepository(
      final Configuration configuration, final CRepository repositoryModel)
      throws ConfigurationException {
    checkRepositoryMaxInstanceCountForCreation(repositoryModel);

    // create it, will do runtime validation
    Repository repository =
        runtimeConfigurationBuilder.createRepositoryFromModel(configuration, repositoryModel);

    // register with repoRegistry
    repositoryRegistry.addRepository(repository);

    // give it back
    return repository;
  }
 @Deprecated
 public Repository createRepositoryFromModel(CRepository repository)
     throws ConfigurationException {
   return runtimeConfigurationBuilder.createRepositoryFromModel(
       getConfigurationModel(), repository);
 }