protected RepositoryConfiguration createAdminRepositoryConfiguration() {
    RepositoryConfiguration repoConfig =
        new RepositoryConfiguration(
            this.getName(), getProductionConfigManager(getName()), RepositoryType.PRODUCTION);

    repoConfig.setName(getName());
    repoConfig.setType(getType());
    repoConfig.setPath(getPath());

    if (this.isSecure()) {
      /*Default Admin credentials for creating new admin user in repo*/
      repoConfig.setLogin("admin");
      repoConfig.setPassword("admin");
    }

    return repoConfig;
  }
  protected RepositoryConfiguration createRepositoryConfiguration() {
    RepositoryConfiguration repoConfig =
        new RepositoryConfiguration(
            getConfigurationName(getName()),
            getProductionConfigManager(getName()),
            RepositoryType.PRODUCTION);

    repoConfig.setName(getName());
    repoConfig.setType(getType());
    repoConfig.setPath(getPath());

    if (this.isSecure()) {
      repoConfig.setLogin(getLogin());
      repoConfig.setPassword(getPassword());
    }

    repoConfig.commit();
    return repoConfig;
  }