public void buildAndAddMeal(String name, double calories, double protein) {
        SimpleMealDaoImpl dao = getSimpleMealDaoImpl();
        Session session = null;
        Transaction tx = null;

        SimpleMeal newMeal = new SimpleMeal();
        newMeal.setName(name);
        newMeal.setCalories(calories);
        newMeal.setProtein(protein);

        try {
            session = HbUtil.getSession();
            //TRANSACTION START
            tx = session.beginTransaction();
            dao.createSimpleMeal(newMeal);
            tx.commit();
            //TRANSACTION END
            //SESSION CLOSE
        } catch (RuntimeException e) {
            if (tx != null) {
                tx.rollback();
            }
            throw e;
        } finally {
            if (session != null && session.isOpen()) {
                session.close();
            }
        }

    }