IEnrolment enrolmentToEdit = enrolmentEvaluationElem.getEnrolment();
IEnrollment enrolmentToEdit = enrolmentEvaluationElem.getEnrolment();
    private void updateEnrolmentState(        IPersistentEnrolment persistentEnrolment,        IEnrolmentEvaluation enrolmentEvaluationElem)        throws ExcepcaoPersistencia    {        IEnrolment enrolmentToEdit = enrolmentEvaluationElem.getEnrolment();        persistentEnrolment.simpleLockWrite(enrolmentToEdit);        EnrolmentState newEnrolmentState = EnrolmentState.APROVED;        if (MarkType.getRepMarks().contains(enrolmentEvaluationElem.getGrade()))        {            newEnrolmentState = EnrolmentState.NOT_APROVED;        } else if (MarkType.getNaMarks().contains(enrolmentEvaluationElem.getGrade()))        {            newEnrolmentState = EnrolmentState.NOT_EVALUATED;        }        enrolmentToEdit.setEnrolmentState(newEnrolmentState);    }