protected function getRequestParameter(Request $request, $name, $force = false, $default = null)
    {
        $value = $request->get($name, $default);
        if ($force && null === $value) {
            throw new MissingParameterException(get_class($this), $name);
        }

        return $value;
    }