protected function generateBooleanValue(\XmlWriter $writer, $value, $key = null, $elementName = 'value')
    {
        $writer->startElement($elementName);
        $this->generateKeyAttribute($writer, $key);
        $writer->text($value ? 'true' : 'false');
        $writer->endElement();
    }