private void initializeTxIfFirst() {
   // The main point of initializing transaction (for HA) is in TransactionImpl, so this is
   // for that extra point where grabbing a lock
   Transaction tx = tm.getTransaction();
   if (!txHook.hasAnyLocks(tx)) txHook.initializeTransaction(tm.getEventIdentifier());
 }
 private int getLocalTxId() {
   return tm.getEventIdentifier();
 }