// For now, this is a "backdoor", using manual template when we have a CRepo object.
ManuallyConfiguredRepositoryTemplate template =
repositoryTemplateProvider.createManuallyTemplate(new CRepositoryCoreConfiguration(
repositoryTemplateProvider.getApplicationConfiguration(), config, null));
template.create();
getNexusConfiguration().saveConfiguration();
}
catch (ConfigurationException e) {
handleConfigurationException(e);