InfoExecutionCourse infoExecutionCourse = new InfoExecutionCourse(); infoExecutionCourse = (InfoExecutionCourse) Cloner.get(frequenta.getDisciplinaExecucao());
InfoExecutionCourse infoExecutionCourse = InfoExecutionCourse.newInfoFromDomain(frequenta.getDisciplinaExecucao());
    public static InfoFrequenta copyIFrequenta2InfoFrequenta(IAttends frequenta) {        if (frequenta == null) {            return null;        }        InfoFrequenta infoFrequenta = new InfoFrequenta();        InfoStudent infoStudent = new InfoStudent();        infoStudent = Cloner.copyIStudent2InfoStudent(frequenta.getAluno());        InfoExecutionCourse infoExecutionCourse = new InfoExecutionCourse();        infoExecutionCourse = (InfoExecutionCourse) Cloner.get(frequenta.getDisciplinaExecucao());        InfoEnrolment infoEnrolment = null;        if (frequenta.getEnrolment() != null) {            infoEnrolment = InfoEnrolmentWithStudentPlanAndCourseAndExecutionPeriod                    .newInfoFromDomain(frequenta.getEnrolment());        }        infoFrequenta.setIdInternal(frequenta.getIdInternal());        infoFrequenta.setAluno(infoStudent);        infoFrequenta.setDisciplinaExecucao(infoExecutionCourse);        infoFrequenta.setInfoEnrolment(infoEnrolment);        return infoFrequenta;    }