RemoteRepository mirror = settings.getMirrorSelector().getMirror( r );
if ( mirror != null )
{
r = mirror;
}
Proxy proxy = settings.getProxySelector().getProxy( r );if ( proxy != null )
{
Builder builder = new RemoteRepository.Builder( r );
builder.setProxy( proxy );
r = builder.build();
}