IExam exam = (Exam) evaluation;
IExam exam = (IExam) evaluation;
    private ISiteComponent getInfoSiteEvaluationExecutionCourses(            InfoSiteEvaluationExecutionCourses component, ISite site, Integer evaluationCode)            throws FenixServiceException {        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            IPersistentEvaluation persistentEvaluation = sp.getIPersistentEvaluation();            IEvaluation evaluation = (IEvaluation) persistentEvaluation.readByOID(Evaluation.class,                    evaluationCode);            if (evaluation instanceof Exam) {                InfoSiteExamExecutionCourses componentExam = (InfoSiteExamExecutionCourses) component;                IExam exam = (Exam) evaluation;                IPersistentExamStudentRoom persistentExamStudentRoom = sp                        .getIPersistentExamStudentRoom();                List enrolledStudents = persistentExamStudentRoom.readByExamOID(exam.getIdInternal());                InfoExam infoExam = InfoExamWithRoomOccupations.newInfoFromDomain(exam);                infoExam.setEnrolledStudents(new Integer(enrolledStudents.size()));                List executionCourses = exam.getAssociatedExecutionCourses();                List infoExecutionCourses = new ArrayList();                Iterator iter = executionCourses.iterator();                while (iter.hasNext()) {                    IExecutionCourse element = (IExecutionCourse) iter.next();                    List attendingStudents = element.getAttendingStudents();                    InfoExecutionCourse infoExecutionCourse = InfoExecutionCourse                            .newInfoFromDomain(element);                    infoExecutionCourse.setNumberOfAttendingStudents(new Integer(attendingStudents                            .size()));                    infoExecutionCourses.add(infoExecutionCourse);                }                componentExam.setInfoExam(infoExam);                componentExam.setInfoExecutionCourses(infoExecutionCourses);                component = componentExam;            }        } catch (ExcepcaoPersistencia e) {            throw new FenixServiceException(e);        }        return component;    }