final GlobalRemoteProxySettings globalRemoteProxySettings = globalRemoteProxySettingsProvider.get();
// TODO: hack
((DefaultGlobalRemoteProxySettings) globalRemoteProxySettings).configure(this);
globalRemoteStorageContext.setRemoteProxySettings(globalRemoteProxySettings);
ConfigurationPrepareForLoadEvent loadEvent = new ConfigurationPrepareForLoadEvent(this);
eventBus.post(loadEvent);
if (loadEvent.isVetoed()) {
log.info(
vetoFormatter.format(new VetoFormatterRequest(loadEvent, log.isDebugEnabled())));
throw new ConfigurationException("The Nexus configuration is invalid!");
}