persistentEnrolment.delete((IEnrolment) iterador.next());
persistentEnrolment.delete((IEnrollment) iterador.next());
    private static void apagaStudentCurricularPlanEnrolments(            Integer studentNumber)    {        try        {            ISuportePersistente suportePersistente = SuportePersistenteOJB                    .getInstance();            IPersistentEnrolment persistentEnrolment = suportePersistente                    .getIPersistentEnrolment();            IStudentCurricularPlanPersistente studentCurricularPlanPersistente = suportePersistente                    .getIStudentCurricularPlanPersistente();            suportePersistente.iniciarTransaccao();            IStudentCurricularPlan studentCurricularPlan = studentCurricularPlanPersistente                    .readActiveByStudentNumberAndDegreeType(studentNumber,                            TipoCurso.LICENCIATURA_OBJ);            List enrolments = persistentEnrolment                    .readAllByStudentCurricularPlan(studentCurricularPlan);            Iterator iterador = enrolments.iterator();            while (iterador.hasNext())                persistentEnrolment.delete((IEnrolment) iterador.next());            suportePersistente.confirmarTransaccao();        }        catch (ExcepcaoPersistencia e)        {            e.printStackTrace();        }    }