protected function _autobox($name, $value)
    {
        if (is_object($value)) {
            return $value;
        }
        $cookie = $this->_classes['cookie'];
        if (!is_array($value)) {
            $value = ['value' => $value];
        }
        $value['name'] = $name;
        return new $cookie($value);
    }