proxyConnector.setProxyId( "foo-bar1" );
proxyConnector.setSourceRepoId( id );
proxyConnector.setTargetRepoId( "all-merged" );
proxyConnectorService.addProxyConnector( proxyConnector );
repositoriesService.scheduleDownloadRemoteIndex( "all-merged", true, true );
// wait a bit
timeout = 20000;
while ( timeout > 0 )
{