@Override
	public boolean addPostToMainForum(MainForum mf)
	{
		{
			Session session = null;
			boolean succses = true;
			try {
				session = factory.openSession();
				session.beginTransaction();
				session.save(mf);
				session.getTransaction().commit();
				log.info("succseed to add post to main forum");
			} catch (HibernateException e) {
				if (session != null) {
					session.getTransaction().rollback();
					log.info("didnt succseed to add post to main forum!!!");
					succses = false;
					throw new ForumException(e);
				}
				
			} finally {
				if (session != null) {
					session.close();
				}
				return succses;
			}
		}
		
	}