code: public int getStatus() throws SystemException
     {
        Transaction tx = registry.getTransaction();
  
        if (tx == null)
           return Status.STATUS_NO_TRANSACTION;
  
        return tx.getStatus();
     }
docs: {@inheritDoc}