System.out.println("Reading Students ....");
System.out.println("Reading Students ...");
	public static void main(String args[]) throws Exception	{		IPersistentMiddlewareSupport mws = PersistentMiddlewareSupportOJB.getInstance();		IPersistentMWAluno persistentAluno = mws.getIPersistentMWAluno();		IPersistentMWEnrolment persistentEnrolment = mws.getIPersistentMWEnrolment();		SuportePersistenteOJB sp = SuportePersistenteOJB.getInstance();		System.out.println("Reading Students ....");		sp.iniciarTransaccao();		executionPeriod = sp.getIPersistentExecutionPeriod().readActualExecutionPeriod();		List result = persistentAluno.readAll();		sp.confirmarTransaccao();		System.out.println("Updating " + result.size() + " student Curriculums ...");		Iterator iterator = result.iterator();		while (iterator.hasNext())		{			MWAluno oldStudent = (MWAluno) iterator.next();			try			{				sp.iniciarTransaccao();				// Read The middleware Enrolments				oldStudent.setEnrolments(persistentEnrolment.readByStudentNumber(oldStudent.getNumber()));				UpdateStudentEnrolments.updateStudentEnrolment(oldStudent, sp);				sp.confirmarTransaccao();			} catch (Exception e)			{}		}		ReportEnrolment.report(new PrintWriter(System.out, true));	}