@Override
public OrganizationalUnit createOrganizationalUnit( final String name,
final String owner,
final Collection<Repository> repositories ) {
final ConfigGroup groupConfig = configurationFactory.newConfigGroup( ConfigType.ORGANIZATIONAL_UNIT,
name,
"" );
groupConfig.addConfigItem( configurationFactory.newConfigItem( "owner",
owner ) );
groupConfig.addConfigItem( configurationFactory.newConfigItem( "repositories",
getRepositoryAliases( repositories ) ) );
groupConfig.addConfigItem( configurationFactory.newConfigItem( "security:roles",
new ArrayList<String>() ) );
configurationService.addConfiguration( groupConfig );
final OrganizationalUnit newOrganizationalUnit = organizationalUnitFactory.newOrganizationalUnit( groupConfig );
registeredOrganizationalUnits.put( newOrganizationalUnit.getName(),