setContentType and footer refactored to BaseServlet avoid copy/paste code