code: public void respond(String html) throws IOException, ServletException {
          response.setContentType("text/html");
          response.getWriter().print(html);
      }
docs: Sends out an arbitrary HTML fragment.