protected void saveEntity(Object o) {
		Session session = null;
		Transaction tx = null;
	
		try {
			session = getSession();
			tx = session.beginTransaction();
			session.save(o);
			tx.commit();
		} catch (RuntimeException e) {
			logger.error("Error saving entity "+ o);
			e.printStackTrace();
		} finally {
			if (session != null) {
				session.close();
			}
		}
	}