System.out.println("Error Reading Fenix Student! Student Number [" + oldStudent.getNumber() + "]");
System.out.println("[ERROR] Reading Fenix Student! Student Number [" + oldStudent.getNumber() + "]");
	public static void updateStudentEnrolment(MWAluno oldStudent, SuportePersistenteOJB sp) throws Exception	{		try		{			IPersistentStudent persistentStudent = sp.getIPersistentStudent();			// Read Fenix Student			IStudent student = persistentStudent.readByNumero(oldStudent.getNumber(), TipoCurso.LICENCIATURA_OBJ);			if (student == null)			{				System.out.println("Error Reading Fenix Student! Student Number [" + oldStudent.getNumber() + "]");				return;			}			IStudentCurricularPlan studentCurricularPlan = sp.getIStudentCurricularPlanPersistente().readActiveByStudentNumberAndDegreeType(student.getNumber(), TipoCurso.LICENCIATURA_OBJ);			if (studentCurricularPlan == null)			{				System.out.println("Error Reading Student Curricular Plan! Student Number [" + oldStudent.getNumber() + "]");				return;			}			List studentEnrolments = sp.getIPersistentEnrolment().readAllByStudentCurricularPlan(studentCurricularPlan);			// Find the Enrolments That No Longer Exist			List enrolments2Annul = getEnrolments2Annul(oldStudent, studentEnrolments, oldStudent.getEnrolments(), sp);			// Find The New Enrolments			List enrolments2Write = getEnrolments2Write(studentEnrolments, oldStudent.getEnrolments(), studentCurricularPlan, sp);			// Annul the Enrolments			annulEnrolments(enrolments2Annul, sp);			// Create The New Enrolments			writeEnrolments(enrolments2Write, studentCurricularPlan, oldStudent, sp);		} catch (Exception e)		{			System.out.println("Error Migrating Student " + oldStudent.getNumber() + " enrolments");			System.out.println("Aluno " + oldStudent.getNumber());			System.out.println("Degree " + oldStudent.getDegreecode());			System.out.println("Branch " + oldStudent.getBranchcode());			e.printStackTrace();			throw new Exception(e);		}	}