public function parameters($reset = false)
    {
        if ($reset || is_null($this->_searchParameters)) {
            $this->_searchParameters = new ParameterRegistry($this->_controller, []);
            $parameters = (array)$this->config('parameters');
            foreach ($parameters as $parameter) {
                if (!empty($parameter['name'])) {
                    $this->addParam($parameter['name'], $parameter);
                }
            }
        }

        return $this->_searchParameters;
    }