repo.setProviderHint(ObrShadowRepository.ROLE_HINT);
final Xpp3Dom ex = new Xpp3Dom(DefaultCRepository.EXTERNAL_CONFIGURATION_NODE_NAME);
repo.setExternalConfiguration(ex);
final ObrShadowRepositoryConfiguration exConf = new ObrShadowRepositoryConfiguration(ex);
repo.externalConfigurationImple = exConf;
repo.setWritePolicy(RepositoryWritePolicy.READ_ONLY.name());
final CRepositoryCoreConfiguration result =
new CRepositoryCoreConfiguration(
getTemplateProvider().getApplicationConfiguration(),
repo,
new CRepositoryExternalConfigurationHolderFactory<ObrShadowRepositoryConfiguration>()
{
public ObrShadowRepositoryConfiguration createExternalConfigurationHolder(final CRepository config) {
return new ObrShadowRepositoryConfiguration(
(Xpp3Dom) config.getExternalConfiguration());
}
});
return result;