private static IEnrolment criaEnrolment(String[] curricularCourseData,
private static IEnrollment criaEnrolment(String[] curricularCourseData,
    private static IEnrolment criaEnrolment(String[] curricularCourseData,            Integer studentNumber, Integer degreeCurricularPlanID)    {        String curricularCourseName = curricularCourseData[0].toUpperCase();        IDegreeCurricularPlan degreeCurricularPlan2Read = new DegreeCurricularPlan();        degreeCurricularPlan2Read.setIdInternal(degreeCurricularPlanID);        EnrolmentState enrolmentState = EnrolmentState.getEnum("msg."                + curricularCourseData[1]);        EnrolmentEvaluationType enrolmentEvaluationType = EnrolmentEvaluationType.NORMAL_OBJ;        IEnrolment enrolment = null;        try        {            ISuportePersistente suportePersistente = SuportePersistenteOJB                    .getInstance();            IPersistentCurricularCourse persistentCurricularCourse = suportePersistente                    .getIPersistentCurricularCourse();            IPersistentDegreeCurricularPlan persistentDegreeCurricularPlan = suportePersistente                    .getIPersistentDegreeCurricularPlan();            IPersistentEnrolment persistentEnrolment = suportePersistente                    .getIPersistentEnrolment();            IStudentCurricularPlanPersistente studentCurricularPlanPersistente = suportePersistente                    .getIStudentCurricularPlanPersistente();            IPersistentExecutionPeriod persistentExecutionPeriod = suportePersistente                    .getIPersistentExecutionPeriod();            suportePersistente.iniciarTransaccao();            IDegreeCurricularPlan degreeCurricularPlan = (IDegreeCurricularPlan) persistentDegreeCurricularPlan                    .readByOId(degreeCurricularPlan2Read, false);            List curricularCourses = persistentCurricularCourse                    .readbyCourseNameAndDegreeCurricularPlan(                            curricularCourseName, degreeCurricularPlan);            ICurricularCourse curricularCourse = null;            try            {                curricularCourse = (ICurricularCourse) curricularCourses.get(0);                IStudentCurricularPlan studentCurricularPlan = studentCurricularPlanPersistente                        .readActiveByStudentNumberAndDegreeType(studentNumber,                                TipoCurso.LICENCIATURA_OBJ);                IExecutionPeriod executionPeriod = persistentExecutionPeriod                        .readActualExecutionPeriod();                enrolment = new Enrolment();                persistentEnrolment.simpleLockWrite(enrolment);                enrolment.setCurricularCourse(curricularCourse);                enrolment.setStudentCurricularPlan(studentCurricularPlan);                enrolment.setExecutionPeriod(executionPeriod);                enrolment.setEnrolmentState(enrolmentState);                enrolment.setEnrolmentEvaluationType(enrolmentEvaluationType);            }            catch (RuntimeException e1)            {                System.out                        .println("Disciplina no encontrada no planos curricular: "                                + curricularCourseName);            }            suportePersistente.confirmarTransaccao();        }        catch (ExcepcaoPersistencia e)        {            e.printStackTrace();        }        return enrolment;    }