public class FrontController extends HttpServlet {
...
  private void processRequest(HttpServletRequest request,
                              HttpServletResponse response)
                              throws ServletException, java.io.IOException {
 
    // tworzenie obiektu RequestContext przy uyciu strategii mapy
    Map requestContextMap = new HashMap(request.getParameterMap());
    Dispatcher dispatcher = new Dispatcher(request, response);
    requestContextMap.put("dispatcher", dispatcher);
 
    // utworzenie instancji ApplicationController
    ApplicationController applicationController = new ApplicationControllerImpl();
 
    // przetwarzanie dania
    ResponseContext responseContext =
      applicationController.handleRequest(requestContextMap);
  
    // przetwarzanie odpowiedzi
    applicationController.HandleResponse(requestContextMap,responseContext);
  }
  ...
}
