String iterationSlug, String docId, LocaleId locale,
TranslationsResource translations, Set<String> extensions,
MergeType mergeType, boolean lock,
AsyncTaskHandle handle) {
// Lock this document for push
Lock transLock = null;
if (lock) {
transLock =
new Lock(projectSlug, iterationSlug, docId, locale, "push");
lockManagerServiceImpl.attain(transLock);
}
List<String> messages = Lists.newArrayList();
try {