@Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // Retrieves the handler to process the request WebHandler handler = handlers.findHandler(request); if (handler == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND, "Handler not found."); return; } handler.execute(this, request, response); }