throw new RepositoryAdminException(
"cannot update NetworkProxy with id " + networkProxy.getId() + " as not exist" );
}
Configuration configuration = getArchivaConfiguration().getConfiguration();
NetworkProxyConfiguration networkProxyConfiguration = getNetworkProxyConfiguration( networkProxy );
configuration.removeNetworkProxy( networkProxyConfiguration );
configuration.addNetworkProxy( networkProxyConfiguration );
triggerAuditEvent( networkProxy.getId(), null, AuditEvent.MODIFY_NETWORK_PROXY, auditInformation );
saveConfiguration( configuration );