public function setFilterConfig($filter, $config)
    {
        if (!$this->hasFilter($filter)) {
            throw new Exception("No such filter '$filter' exists.");
        }

        $this->config[$filter] = $config;
    }