public static Session currentSession() throws HibernateException {
		// Open a new Session, if this thread has none yet
		if (session == null) {
			session = sessionFactory.openSession();
		}
		return session;
	}