IEnrolment newEnrollment = writeEnrollment(curricularCourse, toStudentCurricularPlan, infoCurricularCourseGrade
IEnrollment newEnrollment = writeEnrollment(curricularCourse, toStudentCurricularPlan, infoCurricularCourseGrade
	protected Object execute(Object object) throws FenixServiceException	{		List input = (List) object;		HashMap enrolmentEquivalencesCreated = new HashMap();		InfoEquivalenceContext infoEquivalenceContext = (InfoEquivalenceContext) input.get(0);		Integer toStudentCurricularPlanID = (Integer) input.get(1);		IUserView userView = (IUserView) input.get(2);		try		{			ISuportePersistente persistenceDAO = SuportePersistenteOJB.getInstance();			IPersistentCurricularCourse curricularCourseDAO = persistenceDAO.getIPersistentCurricularCourse();			IPersistentEnrolment enrollmentDAO = persistenceDAO.getIPersistentEnrolment();			IStudentCurricularPlanPersistente studentCurricularPlanDAO = persistenceDAO.getIStudentCurricularPlanPersistente();			IStudentCurricularPlan toStudentCurricularPlan = (IStudentCurricularPlan) studentCurricularPlanDAO.readByOID(				StudentCurricularPlan.class, toStudentCurricularPlanID);						for (int i = 0; i < infoEquivalenceContext.getChosenInfoCurricularCourseGradesToGetEquivalence().size(); i++)			{				InfoCurricularCourseGrade infoCurricularCourseGrade = (InfoCurricularCourseGrade) infoEquivalenceContext					.getChosenInfoCurricularCourseGradesToGetEquivalence().get(i);				ICurricularCourse curricularCourse = (ICurricularCourse) curricularCourseDAO.readByOID(CurricularCourse.class,					infoCurricularCourseGrade.getInfoCurricularCourse().getIdInternal());								IEnrolment newEnrollment = writeEnrollment(curricularCourse, toStudentCurricularPlan, infoCurricularCourseGrade					.getGrade(), userView);								for (int j = 0; j < infoEquivalenceContext.getChosenInfoEnrollmentGradesToGiveEquivalence().size(); j++)				{					InfoEnrolment infoEnrollment = ((InfoEnrollmentGrade)						infoEquivalenceContext.getChosenInfoEnrollmentGradesToGiveEquivalence().get(j)).getInfoEnrollment();										IEnrolment oldEnrollment = (IEnrolment) enrollmentDAO.readByOID(Enrolment.class, infoEnrollment.getIdInternal());										searchForEnrollmentInExtraCurricularCourseAndDeleteIt(oldEnrollment, toStudentCurricularPlan);					writeEquivalences(oldEnrollment, newEnrollment, enrolmentEquivalencesCreated);				}			}		} catch (ExcepcaoPersistencia e)		{			throw new FenixServiceException(e);		}		return null;	}