code: public boolean getRollbackOnly()
     {
        TransactionImpl tx = registry.getTransaction();
  
        if (tx == null)
           throw new IllegalStateException();
  
        return tx.getRollbackOnly();
     }
docs: {@inheritDoc}