if (courseGroup.getNewDegreeCurricularPlan() == null) { currentCourseGroupName = ((previousCourseGroupName.length() == 0) ? "" : (previousCourseGroupName + " > "))
if (!courseGroup.isRoot()) { currentCourseGroupName = ((previousCourseGroupName.length() == 0) ? "" : (previousCourseGroupName + " > "))
    private void collectChildCourseGroups(final List<SelectItem> result, final ICourseGroup courseGroup,            final String previousCourseGroupName) {        String currentCourseGroupName = "";        if (courseGroup.getNewDegreeCurricularPlan() == null) { // not root node            currentCourseGroupName = ((previousCourseGroupName.length() == 0) ? ""                    : (previousCourseGroupName + " > "))                    + courseGroup.getName();            result.add(new SelectItem(courseGroup.getIdInternal(), currentCourseGroupName));        }        for (final IContext context : courseGroup.getContextsWithCourseGroups()) {            collectChildCourseGroups(result, (ICourseGroup) context.getDegreeModule(),                    currentCourseGroupName);        }    }