} else { contextsWithCurricularCourses = contextsWithCurricularCoursesToList(this.getCourseGroup());  if (infoToExport.equals(InfoToExport.CURRICULAR_STRUCTURE)) { fillCurricularStructure(null, contextsWithCurricularCourses, spreadsheet); } else { fillStudiesPlan(contextsWithCurricularCourses, spreadsheet); } }
}
    private void reportInfo(Spreadsheet spreadsheet) throws FenixFilterException, FenixServiceException {        List<Context> contextsWithCurricularCourses = null;        if (rootWasClicked) {            // first level contexts are to be reported            for (Context context : this.getCourseGroup().getSortedChildContextsWithCourseGroups()) {                CourseGroup toBeReported = (CourseGroup) context.getChildDegreeModule();                contextsWithCurricularCourses = contextsWithCurricularCoursesToList(toBeReported);                                if (infoToExport.equals(InfoToExport.CURRICULAR_STRUCTURE)) {                    fillCurricularStructure(toBeReported.getName(), contextsWithCurricularCourses, spreadsheet);                    spreadsheet.addRow();                } else {                    fillStudiesPlan(contextsWithCurricularCourses, spreadsheet);                    spreadsheet.addRow();                }            }        } else {            contextsWithCurricularCourses = contextsWithCurricularCoursesToList(this.getCourseGroup());                        if (infoToExport.equals(InfoToExport.CURRICULAR_STRUCTURE)) {                fillCurricularStructure(null, contextsWithCurricularCourses, spreadsheet);            } else {                fillStudiesPlan(contextsWithCurricularCourses, spreadsheet);                        }        }    }