public void runCopyTrans(String projectSlug, String iterationSlug,
String docId) {
ICopyTransResource resource =
zanataProxyFactory.getCopyTransResource();
CopyTransStatus copyTransStatus =
resource.startCopyTrans(projectSlug,
iterationSlug, docId);
log.info("copyTrans started: {}-{}-{}", projectSlug, iterationSlug, docId);
while (copyTransStatus.isInProgress()) {
try {
Thread.sleep(1000);
log.debug("copyTrans completion: {}", copyTransStatus.getPercentageComplete());
copyTransStatus = resource.getCopyTransStatus(projectSlug, iterationSlug, docId);
}
catch (InterruptedException e) {
throw Throwables.propagate(e);
}