public Repository createRepository( final String scheme,
final String alias,
final Map<String, Object> env ) {
if ( configuredRepositories.containsKey( alias ) || SystemRepository.SYSTEM_REPO.getAlias().equals( alias ) ) {
throw new RepositoryAlreadyExistsException( alias );
}
final ConfigGroup repositoryConfig = configurationFactory.newConfigGroup( REPOSITORY, alias, "" );
repositoryConfig.addConfigItem( configurationFactory.newConfigItem( "security:roles", new ArrayList<String>() ) );
if ( !env.containsKey( SCHEME ) ) {