// handle dev response
if (this.developmentMode && !context.getResponseComplete()
&& resp instanceof HttpServletResponse) {
HttpServletResponse httpResp = (HttpServletResponse) resp;
if (!httpResp.isCommitted()) {
httpResp.reset();
httpResp.setContentType("text/html; charset=UTF-8");
Writer w = httpResp.getWriter();
DevTools.debugHtml(w, context, e);
w.flush();
context.responseComplete();