code: public TransactionImpl getTransaction()
      {
          TxBuffer buf = (TxBuffer) txRepository.get();
          return buf != null ? buf.getInternTx() : null;
      }
docs: Returns the current transaction based on the JTA Transaction or <code>null</code>
  if no transaction was found.