encodeEditOptions();
if (this.toOrder) { encodeOrderOptions(); } else { encodeEditOptions(); }
    private void encodeHeader() throws IOException {        writer.startElement("tr", this);        if (!this.onlyStructure) {            writer.writeAttribute("class", "bgcolor2", null);            writer.startElement("th", this);            writer.writeAttribute("class", "aleft", null);            writer.writeAttribute("colspan", (this.toEdit) ? 3 : 5, null);        } else {            writer.startElement("td", this);            if (this.depth == BASE_DEPTH) {                writer.startElement("strong", this);                   } else if (this.depth > BASE_DEPTH) {                writer.writeAttribute("class", "pleft" + String.valueOf((this.depth + 2)), null);            }        }        if (!facesContext.getViewRoot().getLocale().equals(Locale.ENGLISH)) {            writer.append(this.degreeModule.getName()).append(" ");        } else {            writer.append(this.degreeModule.getNameEn()).append(" ");        }                if (!this.onlyStructure) {            writer.endElement("strong");            writer.endElement("th");        } else {            writer.endElement("td");        }                if (this.toEdit) {            if (this.onlyStructure) {                encodeEditOptions();            } else {                encodeCourseGroupOptions();            }        }                writer.endElement("tr");    }