public static function getParamValue(Request $request, $name,
            $method = null, $ignoreCase = false)
    {
        $params = Utils::getParams($request, $method);
        if($params === null)
        {
            return null;
        }
        if($ignoreCase)
        {
            $name = strtolower($name);
            foreach($params as $key => $value)
            {
                if(strtolower($key) === $name)
                {
                    return urldecode($value);
                }
            }
        } else
        {
            foreach($params as $key => $value)
            {
                if($key === $name)
                {
                    return urldecode($value);
                }
            }
        }
        return null;
    }