public void start(Xid externalXid, int i) throws XAException {
   Xid xid = convertXid(externalXid);
   // transform in our internal format in order to be able to serialize
   localTransaction.setXid(xid);
   txTable.addLocalTransactionMapping(localTransaction);
   if (trace) log.tracef("start called on tx %s", this.localTransaction.getGlobalTransaction());
 }
 private static LocalXaTransaction getLocalTransactionAndValidateImpl(
     Xid xid, XaTransactionTable txTable) throws XAException {
   LocalXaTransaction localTransaction = txTable.getLocalTransaction(xid);
   if (localTransaction == null) {
     if (trace) log.tracef("no tx found for %s", xid);
     throw new XAException(XAException.XAER_NOTA);
   }
   return localTransaction;
 }