*/
private boolean connectToRepository( Wagon wagon, RemoteRepository remoteRepository )
{
boolean connected;
final NetworkProxy proxyConnector = this.networkProxyMap.get( remoteRepository.getId() );
ProxyInfo networkProxy = null;
if ( proxyConnector != null )
{
networkProxy = new ProxyInfo();
networkProxy.setType( proxyConnector.getProtocol() );
networkProxy.setHost( proxyConnector.getHost() );
networkProxy.setPort( proxyConnector.getPort() );
networkProxy.setUserName( proxyConnector.getUsername() );
networkProxy.setPassword( proxyConnector.getPassword() );
String msg = "Using network proxy " + networkProxy.getHost() + ":" + networkProxy.getPort()
+ " to connect to remote repository " + remoteRepository.getUrl();
if ( networkProxy.getNonProxyHosts() != null )
{