docs: public void closeSession() throws HibernateException
      {
          Session s = threadSession.get();
          threadSession.set(null);
          if (s != null)
          {
              s.close();
          }
          
          Transaction tx = threadTransaction.get();
          if (tx != null)
          {
              threadTransaction.set(null);
              //log warning todo
          }
      }