private TutorialEntity lookupTutorial(String tutGroup) {
        TutorialEntity t = new TutorialEntity();
        try {
            Query q = em.createQuery("SELECT t FROM Tutorial t WHERE t.groupNumber LIKE :tutGroup");
            q.setParameter("tutGroup", tutGroup);
            t = (TutorialEntity) q.getSingleResult();
        } catch (NoResultException e) {
            System.out.println("ERROR: Tutorial does not exist. " + e.getMessage());
            t = null;
        }
        return t;
    }