response.setBufferSize(outputBufferSize);
ostream = response.getOutputStream();
// output the calendar to the stream
CalendarOutputter calOut = new CalendarOutputter(false);
calOut.output(icalDoc, ostream);
} catch (ValidationException e) {
// throw olat exception for nice logging
Tracing.logWarn("Validation Error when generate iCal stream for path::" + request.getPathInfo(), e, this.getClass());
DispatcherAction.sendNotFound("none", response);
} catch (IOException e) {