StudentCurricularPlan studentCurricularPlan = (StudentCurricularPlan) persistentStudentCurricularPlan .readByOID(StudentCurricularPlan.class, studentCurricularPlanId);
IStudentCurricularPlan studentCurricularPlan = (IStudentCurricularPlan) persistentStudentCurricularPlan .readByOID(StudentCurricularPlan.class, studentCurricularPlanId);
    public Object run(Integer studentCurricularPlanId) throws FenixServiceException {        InfoStudentCurricularPlan infoStudentCurricularPlan = null;        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            IPersistentStudentCurricularPlan persistentStudentCurricularPlan = sp                    .getIStudentCurricularPlanPersistente();            StudentCurricularPlan studentCurricularPlan = (StudentCurricularPlan) persistentStudentCurricularPlan                    .readByOID(StudentCurricularPlan.class, studentCurricularPlanId);            if (studentCurricularPlan != null) {                infoStudentCurricularPlan = Cloner                        .copyIStudentCurricularPlan2InfoStudentCurricularPlan(studentCurricularPlan);            }            if (studentCurricularPlan.getEnrolments() != null) {                List infoEnrolments = new ArrayList();                ListIterator iterator = studentCurricularPlan.getEnrolments().listIterator();                while (iterator.hasNext()) {                    Enrolment enrolment = (Enrolment) iterator.next();                    InfoEnrolment infoEnrolment = InfoEnrolmentWithStudentPlanAndCourseAndExecutionPeriod                            .newInfoFromDomain(enrolment);                    infoEnrolments.add(infoEnrolment);                }                infoStudentCurricularPlan.setInfoEnrolments(infoEnrolments);            }        } catch (ExcepcaoPersistencia e) {            throw new FenixServiceException(e);        }        return infoStudentCurricularPlan;    }