if ( thisRepositoryConfig != null && config != null ) {
for ( Map.Entry<String, Object> entry : config.entrySet() ) {
ConfigItem configItem = thisRepositoryConfig.getConfigItem( entry.getKey() );
if ( configItem == null ) {
thisRepositoryConfig.addConfigItem( configurationFactory.newConfigItem( entry.getKey(), entry.getValue() ) );
} else {
configItem.setValue( entry.getValue() );
}
}
configurationService.updateConfiguration( thisRepositoryConfig );