docs: public void rollbackTransaction() throws HibernateException
      {
          Transaction tx = threadTransaction.get();
          try
          {
              threadTransaction.set(null);
              if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack())
              {
                  tx.rollback();
              }
          }
          finally
          {
              closeSession();
          }
      }