/**
  * @param response
  * @throws IOException
  */
 private void sendIndex(SlingHttpServletResponse response) throws IOException {
   PrintWriter writer = response.getWriter();
   writer.append(DocumentationConstants.HTML_HEADER);
   writer.append("<h1>List of Services</h1>");
   writer.append("<ul>");
   Map<String, ServletDocumentation> m = servletTracker.getServletDocumentation();
   List<ServletDocumentation> o = new ArrayList<ServletDocumentation>(m.values());
   Collections.sort(o);
   for (ServletDocumentation k : o) {
     String key = k.getKey();
     if (key != null) {
       writer.append("<li><a href=\"");
       writer.append(DocumentationConstants.PREFIX + "/servlet");
       writer.append("?p=");
       writer.append(k.getKey());
       writer.append("\">");
       writer.append(k.getName());
       writer.append("</a><p>");
       writer.append(k.getShortDescription());
       writer.append("</p></li>");
     }
   }
   writer.append("</ul>");
   writer.append(DocumentationConstants.HTML_FOOTER);
 }
 /**
  * @param request
  * @param response
  * @param doc
  * @throws IOException
  */
 private void send(
     SlingHttpServletRequest request, SlingHttpServletResponse response, ServletDocumentation doc)
     throws IOException {
   PrintWriter writer = response.getWriter();
   writer.append(DocumentationConstants.HTML_HEADER);
   writer.append("<h1>Service: ");
   writer.append(doc.getName());
   writer.append("</h1>");
   doc.send(request, response);
   writer.append(DocumentationConstants.HTML_FOOTER);
 }