public void setDiscoveryConfigurationFor(final String mavenProxyRepositoryId,
final DiscoveryConfiguration configuration)
throws IllegalArgumentException, NexusClientNotFoundException
{
try {
final RoutingConfigMessage message = new RoutingConfigMessage();
message.setDiscoveryEnabled(configuration.isEnabled());
message.setDiscoveryIntervalHours(configuration.getIntervalHours());
final RoutingConfigMessageWrapper wrapper = new RoutingConfigMessageWrapper();
wrapper.setData(message);
getNexusClient().serviceResource(routingConfigPath(mavenProxyRepositoryId)).put(wrapper);
}
catch (UniformInterfaceException e) {