Transaction tx = new Transaction(null, transactionLog);
if (globalToLocalMap.containsKey(xid)) { throw new TransactionException("There is already a local tx for global tx " + xid); } Transaction tx = new Transaction(xid, transactionLog);
   public Transaction createTransaction() throws TransactionException   {      Transaction tx = new Transaction(null, transactionLog);      if (log.isTraceEnabled()) { log.trace("created transaction " + tx); }      return tx;   }