public function setConfig(Config $config, $merge = true)
    {
        if ($this->config && $merge) {
            $this->config->merge($config);
        } else {
            $this->config = $config;
        }
    }