private List<InfoExam> getInfoExams(List<Exam> exams) { final List<InfoExam> result = new ArrayList<InfoExam>(exams.size()); for (final Exam exam : exams) { InfoExam infoExam = InfoExam.newInfoFromDomain(exam);  infoExam.setInfoExecutionCourse(InfoExecutionCourse.newInfoFromDomain(exam .getAssociatedExecutionCourses().get(0))); result.add(infoExam);
private List getInfoExams(final InfoRoom infoRoom, final ExecutionPeriod executionPeriod) { final List<InfoExam> result = new ArrayList<InfoExam>(); final OldRoom oldRoom = rootDomainObject.readOldRoomByOID(infoRoom.getIdInternal()); for (final RoomOccupation roomOccupation : oldRoom.getRoomOccupations()) { final WrittenEvaluation writtenEvaluation = roomOccupation.getWrittenEvaluation(); if (writtenEvaluation != null && writtenEvaluation instanceof Exam) { final Exam exam = (Exam) writtenEvaluation; final Set<ExecutionCourse> executionCourses = exam.getAssociatedExecutionCoursesSet(); final ExecutionCourse executionCourse = executionCourses.isEmpty() ? null : executionCourses.iterator().next(); if (executionCourse != null && executionPeriod == executionCourse.getExecutionPeriod()) { InfoExam infoExam = InfoExam.newInfoFromDomain(exam); infoExam.setInfoExecutionCourse(InfoExecutionCourse.newInfoFromDomain(exam .getAssociatedExecutionCourses().get(0))); result.add(infoExam); } }
    private List<InfoExam> getInfoExams(List<Exam> exams) {        final List<InfoExam> result = new ArrayList<InfoExam>(exams.size());        for (final Exam exam : exams) {            InfoExam infoExam = InfoExam.newInfoFromDomain(exam);            // Use one execution course            infoExam.setInfoExecutionCourse(InfoExecutionCourse.newInfoFromDomain(exam                    .getAssociatedExecutionCourses().get(0)));            result.add(infoExam);        }        return result;    }