private void writeEquivalences(IEnrolment oldEnrollment, IEnrolment newEnrollment, HashMap enrolmentEquivalencesCreated)
private void writeEquivalences(IEnrollment oldEnrollment, IEnrollment newEnrollment, HashMap enrolmentEquivalencesCreated)
	private void writeEquivalences(IEnrolment oldEnrollment, IEnrolment newEnrollment, HashMap enrolmentEquivalencesCreated)		throws ExcepcaoPersistencia	{		ISuportePersistente persistenceDAO = SuportePersistenteOJB.getInstance();		IPersistentEnrolmentEquivalence enrollmentEquivalenceDAO = persistenceDAO.getIPersistentEnrolmentEquivalence();		IPersistentEquivalentEnrolmentForEnrolmentEquivalence equivalentEnrollmentForEnrollmentEquivalenceDAO = persistenceDAO			.getIPersistentEquivalentEnrolmentForEnrolmentEquivalence();		IEnrolmentEquivalence enrollmentEquivalence = enrollmentEquivalenceDAO.readByEnrolment(newEnrollment);		if (enrollmentEquivalence == null)		{			enrollmentEquivalence = (IEnrolmentEquivalence) enrolmentEquivalencesCreated.get(newEnrollment.getCurricularCourse()				.getIdInternal());						if (enrollmentEquivalence == null)			{				enrollmentEquivalence = new EnrolmentEquivalence();				enrollmentEquivalenceDAO.simpleLockWrite(enrollmentEquivalence);				enrollmentEquivalence.setEnrolment(newEnrollment);								enrolmentEquivalencesCreated.put(newEnrollment.getCurricularCourse().getIdInternal(), enrollmentEquivalence);			}		}		IEquivalentEnrolmentForEnrolmentEquivalence equivalentEnrollmentForEnrollmentEquivalence = equivalentEnrollmentForEnrollmentEquivalenceDAO			.readByEnrolmentEquivalenceAndEquivalentEnrolment(enrollmentEquivalence, oldEnrollment);		if (equivalentEnrollmentForEnrollmentEquivalence == null)		{			equivalentEnrollmentForEnrollmentEquivalence = new EquivalentEnrolmentForEnrolmentEquivalence();			equivalentEnrollmentForEnrollmentEquivalenceDAO.simpleLockWrite(equivalentEnrollmentForEnrollmentEquivalence);			equivalentEnrollmentForEnrollmentEquivalence.setEnrolmentEquivalence(enrollmentEquivalence);			equivalentEnrollmentForEnrollmentEquivalence.setEquivalentEnrolment(oldEnrollment);		}	}