protected function processDispatchResult(Request $request, Response $response, HandlerExecutionChain $mappedHandler, ModelAndView $mv = null, \Exception $ex = null)
    {
        // TODO: Render Exception
        if ($mv != null && !$mv->wasCleared()) {
            $this->render($mv, $request, $response);
        }
        if ($mappedHandler != null) {
            $mappedHandler->triggerAfterCompletion($request, $response, $ex);
        }
    }