candidateEnrolment.setMasterDegreeCandidate(masterDegreeCandidate);
masterDegreeCandidate.addCandidateEnrolments(candidateEnrolment);
    private void writeFilteredEnrollments(ISuportePersistente sp,            IMasterDegreeCandidate masterDegreeCandidate, List curricularCoursesToEnroll)            throws NonExistingServiceException, ExcepcaoPersistencia {        Iterator iterCurricularCourseIds = curricularCoursesToEnroll.iterator();        while (iterCurricularCourseIds.hasNext()) {            ICurricularCourse curricularCourse = (ICurricularCourse) sp.getIPersistentCurricularCourse()                    .readByOID(CurricularCourse.class, (Integer) iterCurricularCourseIds.next());            if (curricularCourse == null) {                throw new NonExistingServiceException();            }            ICandidateEnrolment candidateEnrolment = DomainFactory.makeCandidateEnrolment();            candidateEnrolment.setMasterDegreeCandidate(masterDegreeCandidate);            candidateEnrolment.setCurricularCourse(curricularCourse);        }    }