code: public Session getSession() throws HibernateException {
  		Session sess = (Session)SessionFactoryHolder.getSession();
  		if (sess == null) {
  			sess = getFactory().openSession();
  			Transaction tr = sess.beginTransaction();
  			SessionFactoryHolder.setSession(sess);
  			SessionFactoryHolder.setTransaction(tr);
  		}
  		return sess;
  	}
docs: /* (non-Javadoc)
  @see com.jdon.model.crud.hibernate.SessionProvider#getSession()