public List<SimpleMeal> getAllMeals() {
        Session session = null;
        Transaction tx = null;
        SimpleMealDaoImpl dao = getSimpleMealDaoImpl();
        ArrayList<SimpleMeal> result = new ArrayList<>();

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

        return result;

    }