public static function getV1BatchTokenFromHeaders($http_headers) {
        if (is_array($http_headers) && isset($http_headers['Link']))
        {
            $connect_link_regexp = "/^<([^>]+)>;rel='next'$/";
            if (preg_match($connect_link_regexp, $http_headers['Link'], $match) === 1)
            {
                $link_uri = $match[1];
                if ($query = parse_url($link_uri, PHP_URL_QUERY))
                {
                    parse_str($query, $query_params);
                    if (is_array($query_params) && isset($query_params['batch_token']))
                    {
                        return $query_params['batch_token'];
                    }
                }
            }
        }

        return null;
    }