@Override
    public String processAppeals() {
        String result = "";
        Query q = em.createQuery("SELECT a FROM Appeal a");
        List<AppealEntity> appealList = q.getResultList();
        for (AppealEntity appeal : appealList) {
            if (appeal.getStatus().equals("Unread") || appeal.getStatus().equals("Processing")) {
                result = result + appeal.getId() + ": " + appeal.getTime() + ", " + appeal.getStudent().getName()
                        + ", " + appeal.getStudent().getMatricNumber() + ", " + appeal.getContent() + ".\n";
            }
        }
        if (result.equals("")) {
            return "No appeals to show!\n";
        }
        return result;
    }