public boolean writeReport(String content){
		
		Report report = generateReport(content);
		
		Session session = null;
		SessionFactory sessionFactory = null;
		try {			
			Configuration configuration = new Configuration();
			configuration.configure();			
			ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().
					applySettings(configuration.getProperties()).buildServiceRegistry();
			sessionFactory = configuration.buildSessionFactory(serviceRegistry);			
			session = sessionFactory.openSession();						
			session.beginTransaction();
			session.save(report);
			session.getTransaction().commit();			
		} catch (Exception e) {
			if (session != null){
				session.getTransaction().rollback();
			}

			return false;
		}finally{
			if (session != null){
				session.close();
			}
			if (sessionFactory !=null){
				sessionFactory.close();
			}
		}
		
		return true;
	}