BackupRpcConfiguration backupRpcConfiguration) throws Throwable {
XSiteStateTransferControlCommand command = commandsFactory.buildXSiteStateTransferControlCommand(control, null);
RetryPolicy retryPolicy = backupRpcConfiguration == null ? NO_RETRY :
new MaxRetriesPolicy(backupRpcConfiguration.maxRetries);
long waitTime = backupRpcConfiguration == null ? 1 : backupRpcConfiguration.waitTime;
RetryOnFailureXSiteCommand remoteSite = RetryOnFailureXSiteCommand.newInstance(xSiteBackup, command, retryPolicy);
remoteSite.execute(rpcManager.getTransport(), waitTime, TimeUnit.MILLISECONDS);
}