if (!newAssociatedCurricularCourseValuations.isEmpty() && oldAndNewExecutionPeriodMap.get(oldExecutionPeriod) != null) { CurricularCourseValuationGroup newCurricularCourseValuationGroup = CurricularCourseValuationGroup.createAndCopyFromCurricularCoursevValuationGroup( newAssociatedCurricularCourseValuations, oldCurricularCourseValuationGroup); createAndCopyProfessorshipValuations( oldAndNewValuationTeacherMap, oldCurricularCourseValuationGroup, newCurricularCourseValuationGroup); } } }
if (!newAssociatedCurricularCourseValuations.isEmpty() && oldAndNewExecutionPeriodMap.get(oldExecutionPeriod) != null) { CurricularCourseValuationGroup newCurricularCourseValuationGroup = CurricularCourseValuationGroup .createAndCopyFromCurricularCoursevValuationGroup( newAssociatedCurricularCourseValuations, oldCurricularCourseValuationGroup); createAndCopyProfessorshipValuations(oldAndNewValuationTeacherMap, oldCurricularCourseValuationGroup, newCurricularCourseValuationGroup); }
	private void createAndCopyCurricularCourseValuationGroupsAndProfessorshipValuations(			ValuationPhase oldValuationPhase,			Map<ValuationCompetenceCourse, ValuationCompetenceCourse> oldAndNewValuationCompetenceCourseMap,			Map<ValuationTeacher, ValuationTeacher> oldAndNewValuationTeacherMap,			Map<ExecutionPeriod, ExecutionPeriod> oldAndNewExecutionPeriodMap,			Map<CurricularCourseValuation, CurricularCourseValuation> oldAndNewCurricularCourseValuationMap) {		for (ValuationCompetenceCourse oldValuationCompetenceCourse : oldAndNewValuationCompetenceCourseMap.keySet()) {			for (ExecutionPeriod oldExecutionPeriod : oldAndNewExecutionPeriodMap.keySet()) {				for (CurricularCourseValuationGroup oldCurricularCourseValuationGroup : oldValuationCompetenceCourse.getCurricularCourseValuationGroupsByValuationPhaseAndExecutionPeriod(						oldValuationPhase,						oldExecutionPeriod)) {					List<CurricularCourseValuation> newAssociatedCurricularCourseValuations = getNewAssociatedCurricularCourseValuation(							oldCurricularCourseValuationGroup.getCurricularCourseValuations(),							oldAndNewCurricularCourseValuationMap);					if (!newAssociatedCurricularCourseValuations.isEmpty()							&& oldAndNewExecutionPeriodMap.get(oldExecutionPeriod) != null) {						CurricularCourseValuationGroup newCurricularCourseValuationGroup = CurricularCourseValuationGroup.createAndCopyFromCurricularCoursevValuationGroup(								newAssociatedCurricularCourseValuations,								oldCurricularCourseValuationGroup);						createAndCopyProfessorshipValuations(								oldAndNewValuationTeacherMap,								oldCurricularCourseValuationGroup,								newCurricularCourseValuationGroup);					}				}			}		}	}