private synchronized static void configureSessionFactory() {

		try {
			System.out.println(org.hibernate.Version.getVersionString());
			ServiceRegistry serviceRegistry = new ServiceRegistryBuilder()
					.applySettings(getConfiguration().getProperties()).buildServiceRegistry();
			
			sessionFactory = getConfiguration().buildSessionFactory(serviceRegistry);
		} catch (Throwable ex) {
			throw new ExceptionInInitializerError(ex);
		}

    }