Replaced all calls to HttpServletResponse.setContentType() with setHeader("Content-Type"), as the former does not work as expected under WebSphere AS 7