protected function applyValue(&$data, &$node)
    {
        $data['@value'] = $this->getBooleanAsString($data['@value']);

        if(is_array($data['@value']))
        {
            $this->processGenerate(key($data['@value']), $data['@value']);
        }
        else
        {
            $node->appendChild($this->getDomDocument()->createTextNode($data['@value']));
        }

        unset($data['@value']);
    }