class MainServlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
        LiveConfiguration.updateConfiguration();
        LiveConfiguration.setServer(req);
        resp.getOutputStream().println(ServletConstants.PAGE_HEADER);
        displayMetricsLink(req, resp.getOutputStream());
        displayForm(req, resp.getOutputStream());
        displayConfiguration(resp.getOutputStream());

        resp.getOutputStream().close();
    }

}