private IEnrolment writeEnrollment(
private IEnrollment writeEnrollment(
	private IEnrolment writeEnrollment(		IStudentCurricularPlan studentCurricularPlan,		IExecutionPeriod executionPeriod,		ICurricularCourse curricularCourse,		HashMap enrollmentsCreated) throws ExcepcaoPersistencia	{		ISuportePersistente persistentSuport = SuportePersistenteOJB.getInstance();		IPersistentEnrolment enrolmentDAO = persistentSuport.getIPersistentEnrolment();				IEnrolment enrolment =			enrolmentDAO.readByStudentCurricularPlanAndCurricularCourseAndExecutionPeriod(				studentCurricularPlan,				curricularCourse,				executionPeriod);				if (enrolment == null)		{			enrolment = (IEnrolment) enrollmentsCreated.get(curricularCourse.getIdInternal());			if (enrolment == null)			{				enrolment = new Enrolment();				enrolmentDAO.simpleLockWrite(enrolment);				enrolment.setCurricularCourse(curricularCourse);				enrolment.setEnrolmentEvaluationType(EnrolmentEvaluationType.NORMAL_OBJ);				enrolment.setEnrolmentState(EnrolmentState.ENROLED);				enrolment.setExecutionPeriod(executionPeriod);				enrolment.setStudentCurricularPlan(studentCurricularPlan);				WriteEnrolment.createAttend(enrolment);				return enrolment;			}		}		return null;	}