public function addOption($name, $value)
    {
        if (strpos($name, '.') !== false) {
            $method = explode('.', $name);
            $method = array_shift($method).implode('', array_map('ucfirst', $method));
            $this->configuration->$method($value);
        } elseif ($name === 'user_agent') {
            $this->setUserAgent($value);
        } else {
            $this->configuration->$name = $value;
        }

        return $this;
    }