private String getRepoKey( RemoteRepository repository )
{
StringBuilder buffer = new StringBuilder( 128 );
Proxy proxy = repository.getProxy();
if ( proxy != null )
{
appendAuth( buffer, proxy.getAuthentication() );
buffer.append( proxy.getHost() ).append( ':' ).append( proxy.getPort() ).append( '>' );
}
Authentication auth = repository.getAuthentication();
appendAuth( buffer, auth );