code: @Override
      public void setRollbackOnly() throws IllegalStateException, SystemException
      {
          Transaction tx = threadLocal.get();
          if (tx == null)
          {
              throw new IllegalStateException("Cannot get Transaction for setRollbackOnly");
          }
          tx.setRollbackOnly();
  
      }
docs: /*
  (non-Javadoc)
  
  @see javax.transaction.UserTransaction#setRollbackOnly()