List candidateEnrollmentsToDelete) throws ExcepcaoPersistencia {
Collection<ICandidateEnrolment> candidateEnrollmentsToDelete) throws ExcepcaoPersistencia {
    private void deleteRemainingEnrollments(IPersistentCandidateEnrolment persistentCandidateEnrolment,            List candidateEnrollmentsToDelete) throws ExcepcaoPersistencia {        Iterator iterCandidateEnrollmentsToDelete = candidateEnrollmentsToDelete.iterator();        while (iterCandidateEnrollmentsToDelete.hasNext()) {            ICandidateEnrolment candidateEnrolmentToDelete = (ICandidateEnrolment) iterCandidateEnrollmentsToDelete                    .next();			candidateEnrolmentToDelete.getCurricularCourse().getCandidateEnrolments().remove(candidateEnrolmentToDelete);			candidateEnrolmentToDelete.getMasterDegreeCandidate().getCandidateEnrolments().remove(candidateEnrolmentToDelete);			candidateEnrolmentToDelete.setCurricularCourse(null);			candidateEnrolmentToDelete.setMasterDegreeCandidate(null);            persistentCandidateEnrolment.deleteByOID(CandidateEnrolment.class, candidateEnrolmentToDelete.getIdInternal());        }    }