public function writeAttribute($value)
    {
        if (is_array($value)) {
            foreach ($value as $attrName => $attrValue) {
                $this->context->writeAttribute($attrName, $attrValue);
            }
        }
    }