docs: public void beginTransaction() throws HibernateException
      {
          Transaction tx = threadTransaction.get();
          if (tx == null)
          {
              tx = getSession().beginTransaction();
              threadTransaction.set(tx);
          }
      }