{
if ( proxy.isActive() && ( protocol.equalsIgnoreCase( proxy.getProtocol() )
|| originalProtocol.equalsIgnoreCase( proxy.getProtocol() ) ) )
{
SettingsDecryptionResult result =
settingsDecrypter.decrypt( new DefaultSettingsDecryptionRequest( proxy ) );
proxy = result.getProxy();
ProxyInfo proxyInfo = new ProxyInfo();
proxyInfo.setHost( proxy.getHost() );
// so hackish for wagon the protocol is https for site dav : dav:https://dav.codehaus.org/mojo/