code: public String getTransaction()
     {
        if (transaction == null)
        {
           TraceEvent transactionEvent =
              TraceEventHelper.getType(events,
                                       TraceEvent.ENLIST_CONNECTION_LISTENER,
                                       TraceEvent.ENLIST_CONNECTION_LISTENER_FAILED,
                                       TraceEvent.ENLIST_INTERLEAVING_CONNECTION_LISTENER,
                                       TraceEvent.ENLIST_INTERLEAVING_CONNECTION_LISTENER_FAILED);
        
           if (transactionEvent != null)
           {
              transaction = transactionEvent.getPayload1();
           }
           else
           {
              transaction = "";
           }
        }
  
        if (!"".equals(transaction))
           return transaction;
  
        return null;
     }
docs: Get transaction
  @return The value