for (ValuationCompetenceCourse valuationCompetenceCourse : valuationCompetenceCourseList) { if (valuationCompetenceCourse.getIsRealCompetenceCourse()) { if(valuationCompetenceCourse.hasActiveValuationCurricularCoursesInExecutionPeriods(executionPeriodList)) { oldAndNewValuationCompetenceCourseMap.put(valuationCompetenceCourse, valuationCompetenceCourse); } } else { ValuationCompetenceCourse newValuationCompetenceCourse = new ValuationCompetenceCourse( valuationCompetenceCourse.getName()); oldAndNewValuationCompetenceCourseMap.put(valuationCompetenceCourse, newValuationCompetenceCourse); }
for (ValuationCompetenceCourse valuationCompetenceCourse : valuationCompetenceCourseList) { if (valuationCompetenceCourse.getIsRealCompetenceCourse()) { if (valuationCompetenceCourse .hasActiveValuationCurricularCoursesInExecutionPeriods(executionPeriodList)) { oldAndNewValuationCompetenceCourseMap.put(valuationCompetenceCourse, valuationCompetenceCourse);
	private Map<ValuationCompetenceCourse, ValuationCompetenceCourse> createAndCopyFromValuationCompetenceCourseList(			List<ValuationCompetenceCourse> valuationCompetenceCourseList,			List<ExecutionPeriod> executionPeriodList) {		Map<ValuationCompetenceCourse, ValuationCompetenceCourse> oldAndNewValuationCompetenceCourseMap = new HashMap<ValuationCompetenceCourse, ValuationCompetenceCourse>();		for (ValuationCompetenceCourse valuationCompetenceCourse : valuationCompetenceCourseList) {			if (valuationCompetenceCourse.getIsRealCompetenceCourse()) {				if(valuationCompetenceCourse.hasActiveValuationCurricularCoursesInExecutionPeriods(executionPeriodList)) {					oldAndNewValuationCompetenceCourseMap.put(valuationCompetenceCourse, valuationCompetenceCourse);				}			} else {				ValuationCompetenceCourse newValuationCompetenceCourse = new ValuationCompetenceCourse(						valuationCompetenceCourse.getName());				oldAndNewValuationCompetenceCourseMap.put(valuationCompetenceCourse, newValuationCompetenceCourse);			}		}		return oldAndNewValuationCompetenceCourseMap;	}