encodeLink("createCourseGroup.faces?degreeCurricularPlanID=" + this.facesContext.getExternalContext().getRequestParameterMap().get("degreeCurricularPlanID") + "&parentCourseGroupID=" + this.degreeModule.getIdInternal() + organizeBy, "create.course.group");
encodeLink("createCourseGroup.faces?degreeCurricularPlanID=" + this.facesContext.getExternalContext().getRequestParameterMap().get("degreeCurricularPlanID") + "&parentCourseGroupID=" + this.degreeModule.getIdInternal() + organizeBy + "&toOrder=false", "create.course.group");
    private void encodeCourseGroup() throws IOException {        if (!this.degreeModule.isRoot()) {            // this is not the root course group            encodeSelf();            encodeChildCourseGroups();        } else {            // root course group            if (this.onlyStructure) {                if (this.toEdit) {                    if (!this.toOrder) {                        String organizeBy = "&organizeBy=" + (String) this.facesContext.getExternalContext().getRequestParameterMap().get("organizeBy");                        encodeLink("createCourseGroup.faces?degreeCurricularPlanID=" + this.facesContext.getExternalContext().getRequestParameterMap().get("degreeCurricularPlanID") + "&parentCourseGroupID=" + this.degreeModule.getIdInternal() + organizeBy, "create.course.group");                    }                }                                            writer.startElement("br", this);                writer.append("&nbsp;");                writer.endElement("br");                                writer.startElement("table", this);                writer.writeAttribute("class", "showinfo3 mvert0", null);                encodeChildCourseGroups();                                writer.endElement("table");            } else {                if (!((CourseGroup)this.degreeModule).hasAnyCourseGroupContexts()) {                    writer.startElement("table", this);                    writer.startElement("tr", this);                    writer.startElement("td", this);                    writer.writeAttribute("align", "center", null);                    writer.startElement("i", this);                    writer.append(this.getBundleValue("BolonhaManagerResources", "empty.curricularPlan"));                    writer.endElement("i");                    writer.endElement("td");                    writer.endElement("tr");                    writer.endElement("table");                } else {                    encodeChildCourseGroups();                    if (this.degreeModule.getNewDegreeCurricularPlan().getDegreeStructure().hasAnyChilds()) {                        encodeSubtitles();                    }                }            }        }    }