new UICourseGroup(dcp.getDegreeModule(), null, this.toEdit, this.showRules, ROOT_DEPTH, "", onlyStructure).encodeBegin(facesContext);
new UICourseGroup(dcp.getDegreeModule(), null, this.toEdit, this.showRules, ROOT_DEPTH, "", onlyStructure, toOrder).encodeBegin(facesContext);
    public void encodeBegin(FacesContext facesContext) throws IOException {        if (!isRendered()) {            return;        }        final DegreeCurricularPlan dcp = (DegreeCurricularPlan) this.getAttributes().get("dcp");        if (!dcp.getCurricularStage().equals(CurricularStage.OLD)) {            final Boolean onlyStructure = this.getBooleanAttribute("onlyStructure");            this.toEdit = this.getBooleanAttribute("toEdit");            final String organizeBy = (String) this.getAttributes().get("organizeBy");            this.showRules = (this.getBooleanAttribute("showRules") != null) ? (Boolean) this.getBooleanAttribute("showRules") : Boolean.FALSE;            if (organizeBy != null && organizeBy.equalsIgnoreCase("years")) {                encodeByYears(facesContext, dcp);            } else {                StringBuilder dcpBuffer = new StringBuilder();                dcpBuffer.append("[DCP ").append(dcp.getIdInternal()).append("] ").append(dcp.getName());                //System.out.println(dcpBuffer);                new UICourseGroup(dcp.getDegreeModule(), null, this.toEdit, this.showRules, ROOT_DEPTH, "", onlyStructure).encodeBegin(facesContext);            }        }    }