System.out.println("Exiting ojb dao.");
    public List readByRoomAndExecutionPeriod(String roomName, String executionPeriodName, String year)            throws ExcepcaoPersistencia {        System.out.println("Entering ojb dao");        Criteria criteria = new Criteria();        criteria.addEqualTo("associatedRoomOccupation.room.nome", roomName);        criteria                .addEqualTo("associatedExecutionCourses.executionPeriod.name", executionPeriodName);        criteria.addEqualTo("associatedExecutionCourses.executionPeriod.executionYear.year",year);        List examsWithRepetition = queryList(Exam.class, criteria);        List examsWithoutRepetition = new ArrayList();        for (int i = 0; i < examsWithRepetition.size(); i++) {            IExam exam = (IExam) examsWithRepetition.get(i);            if (!examsWithoutRepetition.contains(exam)) {                examsWithoutRepetition.add(exam);            }        }        System.out.println("Exiting ojb dao.");        return examsWithoutRepetition;    }