List<String> hostNames = new ArrayList<String>();
for(HostNamePair hostNamePair: hostNamePairs)
hostNames.add(hostNamePair.getExternalHostName());
RemoteOperation operation = new RsyncDeployer(hostNames,
sshPrivateKey,
hostUserId,
sourceDirectory,
parentDirectory);
operation.execute();
}