code: @Override
      public int getStatus() throws SystemException
      {
          Transaction tx = threadLocal.get();
          if (tx == null)
          {
              return Status.STATUS_NO_TRANSACTION;
          }
          return tx.getStatus();
      }
docs: /*
  (non-Javadoc)
  
  @see javax.transaction.UserTransaction#getStatus()