unitScientificAreaGrouping.put(scientificAreaUnit, scientificAreaGrouping); }  scientificAreaGrouping.getValuationCompetenceCoursesSet().addAll(coursesNewGrouping.getValuationCompetenceCourses()); coursesNewGrouping.setParent(scientificAreaGrouping); }
scientificAreaGrouping.getValuationCompetenceCoursesSet().addAll( coursesNewGrouping.getValuationCompetenceCourses()); coursesNewGrouping.setParent(scientificAreaGrouping);
	private void createSubGroupings() {		HashMap<Unit, ValuationGrouping> unitTeachersNewGrouping = new HashMap<Unit, ValuationGrouping>();		ValuationGrouping rootGrouping = getRootValuationGrouping();		for (ValuationTeacher valuationTeacher : rootGrouping.getValuationTeachers()) {			Teacher teacher = valuationTeacher.getTeacher();			if (teacher.getCurrentWorkingUnit() != null) {				createChildUnitsGroupingsForTeachers(valuationTeacher, teacher.getCurrentWorkingUnit(), null,						rootGrouping, unitTeachersNewGrouping);			}		}		HashMap<Unit, ValuationGrouping> unitCoursesNewGrouping = new HashMap<Unit, ValuationGrouping>();				for (ValuationCompetenceCourse valuationCompetenceCourse : rootGrouping.getValuationCompetenceCourses()) {			CompetenceCourse competenceCourse = valuationCompetenceCourse.getCompetenceCourse();			if (competenceCourse != null && competenceCourse.getCompetenceCourseGroupUnit() != null) {				createChildCompetenceCourseGroupUnits(valuationCompetenceCourse, rootGrouping, unitCoursesNewGrouping);			}		}				HashMap<Unit, ValuationGrouping> unitScientificAreaGrouping = new HashMap<Unit, ValuationGrouping>();				for (Unit courseUnit : unitCoursesNewGrouping.keySet()) {			Unit scientificAreaUnit = courseUnit.getParentUnits().get(0);			ValuationGrouping scientificAreaGrouping = unitScientificAreaGrouping.get(scientificAreaUnit);			ValuationGrouping teachersNewGrouping = unitTeachersNewGrouping.get(scientificAreaUnit);			ValuationGrouping coursesNewGrouping = unitCoursesNewGrouping.get(courseUnit);									if(scientificAreaGrouping == null){				if(teachersNewGrouping == null){					scientificAreaGrouping = new ValuationGrouping(this, scientificAreaUnit.getName(), rootGrouping, 							new ArrayList<ValuationTeacher>(), new ArrayList<ValuationCompetenceCourse>(),							rootGrouping.getCoursesAndTeachersValuationManagers(),							rootGrouping.getCoursesAndTeachersManagementGroup());				} else {					scientificAreaGrouping = teachersNewGrouping;				}				unitScientificAreaGrouping.put(scientificAreaUnit, scientificAreaGrouping);			} 						scientificAreaGrouping.getValuationCompetenceCoursesSet().addAll(coursesNewGrouping.getValuationCompetenceCourses());			coursesNewGrouping.setParent(scientificAreaGrouping);		}	}