public static InfoEnrolment copyIEnrolment2InfoEnrolment(IEnrolment enrolment)
public static InfoEnrolment copyIEnrolment2InfoEnrolment(IEnrollment enrolment)
    public static InfoEnrolment copyIEnrolment2InfoEnrolment(IEnrolment enrolment)    {        InfoEnrolment infoEnrolment = null;        InfoCurricularCourse infoCurricularCourseOption = null;        InfoStudentCurricularPlan infoStudentCurricularPlan =            Cloner.copyIStudentCurricularPlan2InfoStudentCurricularPlan(                enrolment.getStudentCurricularPlan());        InfoCurricularCourse infoCurricularCourse =            Cloner.copyCurricularCourse2InfoCurricularCourse(enrolment.getCurricularCourse());        InfoExecutionPeriod infoExecutionPeriod =            (InfoExecutionPeriod) Cloner.get(enrolment.getExecutionPeriod());        List infoEnrolmentEvaluationsList = new ArrayList();        List enrolmentEvaluationsList = enrolment.getEvaluations();        if (enrolmentEvaluationsList != null && !enrolmentEvaluationsList.isEmpty())        {            Iterator iterator = enrolmentEvaluationsList.iterator();            while (iterator.hasNext())            {                IEnrolmentEvaluation enrolmentEvaluation = (IEnrolmentEvaluation) iterator.next();                InfoEnrolmentEvaluation infoEnrolmentEvaluation =                    Cloner.copyIEnrolmentEvaluation2InfoEnrolmentEvaluation(enrolmentEvaluation);                infoEnrolmentEvaluationsList.add(infoEnrolmentEvaluation);            }        }        if (enrolment instanceof IEnrolmentInOptionalCurricularCourse)        {			infoEnrolment = new InfoEnrolmentInOptionalCurricularCourse();			ICurricularCourse curricularCourseForOption = ((IEnrolmentInOptionalCurricularCourse) enrolment).getCurricularCourseForOption();			if (curricularCourseForOption != null)			{				infoCurricularCourseOption = Cloner.copyCurricularCourse2InfoCurricularCourse(curricularCourseForOption);				((InfoEnrolmentInOptionalCurricularCourse) infoEnrolment).setInfoCurricularCourseForOption(infoCurricularCourseOption);			}        }        else if (enrolment instanceof IEnrolmentInExtraCurricularCourse)        {            infoEnrolment = new InfoEnrolmentInExtraCurricularCourse();        }        else        {            infoEnrolment = new InfoEnrolment();        }        copyObjectProperties(infoEnrolment, enrolment);        infoEnrolment.setInfoCurricularCourse(infoCurricularCourse);        //infoEnrolment.setInfoCurricularCourseScope(infoCurricularCourseScope);        infoEnrolment.setInfoExecutionPeriod(infoExecutionPeriod);        infoEnrolment.setInfoStudentCurricularPlan(infoStudentCurricularPlan);        infoEnrolment.setInfoEvaluations(infoEnrolmentEvaluationsList);        return infoEnrolment;    }