IEnrolment enrolment = (IEnrolment) enrolmentDAO.readByOID(
IEnrollment enrolment = (IEnrollment) enrolmentDAO.readByOID(
    public void run(Integer executionDegreeId, Integer studentCurricularPlanId,            Integer enrolmentID) throws FenixServiceException    {        try        {            ISuportePersistente persistentSuport = SuportePersistenteOJB                    .getInstance();            IPersistentEnrolment enrolmentDAO = persistentSuport                    .getIPersistentEnrolment();            IPersistentEnrolmentEvaluation enrolmentEvaluationDAO = persistentSuport                    .getIPersistentEnrolmentEvaluation();            IEnrolment enrolment = (IEnrolment) enrolmentDAO.readByOID(                    Enrolment.class, enrolmentID);            if (enrolment != null)            {                if (enrolment.getEvaluations() != null)                {                    Iterator iterator = enrolment.getEvaluations().iterator();                    while (iterator.hasNext())                    {                        IEnrolmentEvaluation enrolmentEvaluation = (IEnrolmentEvaluation) iterator                                .next();                        enrolmentEvaluationDAO.deleteByOID(                                EnrolmentEvaluation.class, enrolmentEvaluation                                        .getIdInternal());                    }                }                deleteAttend(enrolment);                enrolmentDAO.deleteByOID(Enrolment.class, enrolment                        .getIdInternal());            }        }        catch (ExcepcaoPersistencia e)        {            e.printStackTrace();            throw new FenixServiceException(e);        }    }