protected function setQueryParam($param, $value)
    {
        if ( !in_array($param, $this->queryWhitelist) ) {
            throw new \InvalidArgumentException(sprintf('The query parameter `%s` was not recognized.', $param));
        }

        $this->parameters->set($param, $value);
    }