@Override
public String forceTransactionCompletion(Xid xid, boolean commit) {
//this means that we have this as a local transaction that originated here
LocalXaTransaction localTransaction = txTable.getLocalTransaction(xid);
if (localTransaction != null) {
localTransaction.clearRemoteLocksAcquired();
return completeTransaction(localTransaction, commit, xid);
} else {
RecoveryAwareRemoteTransaction tx = getPreparedTransaction(xid);
if (tx == null) return "Could not find transaction " + xid;
GlobalTransaction globalTransaction = tx.getGlobalTransaction();