try {
            $params = $this->get('hateoas.request_parser')
                ->parse($this->getRequest());
        } catch (NotFoundException $e) {
            throw new NotFoundHttpException($e->getMessage(), $e);