for (Context context : this.getCourseGroupContexts()) {
for (Context context : this.getSortedContextsWithCurricularCourses()) { context.getDegreeModule().print(dcp, tab, context); } for (Context context : this.getSortedContextsWithCourseGroups()) {
    public void print(StringBuilder dcp, String tabs, Context previousContext) {        String tab = tabs + "\t";        dcp.append(tab);        dcp.append("[CG ").append(this.getIdInternal()).append("] ").append(this.getName()).append("\n");        for (Context context : this.getCourseGroupContexts()) {            context.getDegreeModule().print(dcp, tab, context);        }    }