code: public Session getSession() throws HibernateException
      {
          Session s = threadSession.get();
          if (s == null)
          {
              s = initSession();
          }
  
          return s;
      }
docs: <p>getSession.</p>
  
  @return a {@link org.hibernate.Session} object.
  @throws org.hibernate.HibernateException if any.