code: public Transaction getTransaction() {
          try {
              return getTransactionManager().getTransaction();
          }
          catch (Exception ex) {
              StandardLogger logger = LoggerUtil.getStandardLogger();
              logger.severeException(ex.getMessage(), ex);
              return null;
          }
      }
docs: Returns the current transaction