code: public int getTransactionStatus()
     {
        TransactionImpl tx = registry.getTransaction();
  
        if (tx == null)
           return Status.STATUS_NO_TRANSACTION;
  
        try
        {
           return tx.getStatus();
        }
        catch (Throwable t)
        {
           return Status.STATUS_UNKNOWN;
        }
     }
docs: {@inheritDoc}