refactor SimpleServlet