this.onlyStructure = onlyStructure; this.toOrder = toOrder; this.hideCourses = hideCourses; this.reportsAvailable = reportsAvailable;
    public UICourseGroup(DegreeModule courseGroup, Context previousContext, Boolean toEdit, Boolean showRules, int depth, String tabs, Boolean onlyStructure, Boolean toOrder, Boolean hideCourses, Boolean reportsAvailable, ExecutionYear executionYear) throws IOException {        super(courseGroup, previousContext, toEdit, showRules, depth, tabs, executionYear);                if (toOrder && (!onlyStructure || !toEdit)) {            throw new IOException("incorrect.component.usage");        }        this.courseGroup = (CourseGroup) super.degreeModule;        this.onlyStructure = onlyStructure;        this.toOrder = toOrder;        this.hideCourses = hideCourses;        this.reportsAvailable = reportsAvailable;    }