protected function duplicateRequest(\Exception $exception, Request $request)
    {
        $attributes = [
            '_controller' => $this->controller,
            'exception'   => $exception,
            'format'      => $request->getRequestFormat()
        ];

        $request = $request->duplicate(null, null, $attributes);
        $request->setMethod('GET');

        return $request;
    }