ServletContext context = session.getServletContext();
String path = context.getRealPath("/");
int id = Integer.parseInt(req.getParameter("id"));
ConfirmedBooking confirmedBooking = bookingManager.getConfirmedBooking(id);
bookingManager.updateConfirmedBookingWithTodaysDateIfNecessary(confirmedBooking);
ConfirmedBookingDTO confirmedBookingDTO = new ConfirmedBookingDTO(confirmedBooking);
ConfirmedBookingReportMaker report = new ConfirmedBookingReportMaker(confirmedBooking);
OutputStream out = null;
try {
out = resp.getOutputStream();
report.createReport(path, out);