public function getPathParameter($name)
    {
        if (!$this->hasPathParameter($name)) {
            throw new \InvalidArgumentException(sprintf('The path request parameter "%s" does not exist.', $name));
        }

        return $this->pathParameters[$name];
    }