public function cleanConfig()
    {
        // Revert config that was changed.
        foreach ($this->config as $name => $key_value) {
            foreach ($key_value as $key => $value) {
                $this->getDriver()->configSet($name, $key, $value);
            }
        }
        $this->config = array();
    }