}
}
public ActionForward downloadStatistics(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws Exception {
ExecutionYear executionYear = getDomainObject(request, "executionYearId");
Set<Degree> degreesToInclude =
AcademicAccessRule.getDegreesAccessibleToFunction(AcademicOperationType.STUDENT_LISTINGS, Authenticate.getUser())
.collect(Collectors.toSet());
final String filename = getResourceMessage("label.statistics") + "_" + executionYear.getName().replace('/', '-');
final Spreadsheet spreadsheet = new Spreadsheet(filename);
addStatisticsHeaders(spreadsheet);
addStatisticsInformation(spreadsheet, executionYear, degreesToInclude);
response.setContentType("application/vnd.ms-excel");