transferShifts( executionPeriodToImportDataTo, executionPeriodToExportDataFrom);  System.out.println("Finished creating shifts.");
System.out.println("Confirming transaction."); SuportePersistenteOJB.getInstance().confirmarTransaccao(); System.out.println("Starting transaction."); SuportePersistenteOJB.getInstance().iniciarTransaccao();
	public void transferData(		IExecutionPeriod executionPeriodToImportDataTo,		IExecutionPeriod executionPeriodToExportDataFrom)		throws ExcepcaoPersistencia {		// Clear all data from executionPeriodToImportDataTo.		deleteAllDataRelatedToExecutionPeriod(executionPeriodToImportDataTo);		//try {		transferExecutionDegrees(			executionPeriodToImportDataTo,			executionPeriodToExportDataFrom);		System.out.println("Finished creating execution degrees.");		transferExecutionCourses(			executionPeriodToImportDataTo,			executionPeriodToExportDataFrom);		System.out.println("Finished creating execution courses.");		System.out.println("Confirming transaction.");		SuportePersistenteOJB.getInstance().confirmarTransaccao();		System.out.println("Starting transaction.");		SuportePersistenteOJB.getInstance().iniciarTransaccao();		System.out.println("Clearing cache.");		SuportePersistenteOJB.getInstance().clearCache();		System.out.println("Confirming transaction.");		SuportePersistenteOJB.getInstance().confirmarTransaccao();		System.out.println("Starting transaction.");		SuportePersistenteOJB.getInstance().iniciarTransaccao();				transferClasses(			executionPeriodToImportDataTo,			executionPeriodToExportDataFrom);		System.out.println("Finished creating classes.");		transferLessons(			executionPeriodToImportDataTo,			executionPeriodToExportDataFrom);		System.out.println("Finished creating lessons.");		transferShifts(			executionPeriodToImportDataTo,			executionPeriodToExportDataFrom);		System.out.println("Finished creating shifts.");		transferShiftLessonAssociations(			executionPeriodToImportDataTo,			executionPeriodToExportDataFrom);		System.out.println("Finished creating shiftLessons.");		transferClassShiftAssociations(			executionPeriodToImportDataTo,			executionPeriodToExportDataFrom);		System.out.println("Finished creating classShifts.");		System.out.println("Confirming transaction.");		SuportePersistenteOJB.getInstance().confirmarTransaccao();		System.out.println("Starting transaction.");		SuportePersistenteOJB.getInstance().iniciarTransaccao();		System.out.println("Clearing cache.");		SuportePersistenteOJB.getInstance().clearCache();		System.out.println("Confirming transaction.");		SuportePersistenteOJB.getInstance().confirmarTransaccao();		System.out.println("Starting transaction.");		SuportePersistenteOJB.getInstance().iniciarTransaccao();		cleanUpLessons(executionPeriodToImportDataTo);		cleanUpShifts(executionPeriodToImportDataTo);		System.out.println("Completed cleanup.");	}