// ... then remote ones
waitForTransactionsToComplete(txContext, txTable.getRemoteTransactions(), key, transactionTopologyId, expectedEndTime);
// Then try to acquire a lock
if (trace)
log.tracef("Finished waiting for other potential lockers, trying to acquire the lock on %s", toStr(key));
final long remaining = timeService.remainingTime(expectedEndTime, TimeUnit.MILLISECONDS);
lockManager.acquireLock(ctx, key, remaining, skipLocking);
} else {
if (trace)