protected function addTermOptions($dom, $elem)
    {
        if (!empty($this->termOptions)) {
            foreach ($this->termOptions as $opt) {
                $termElem = $dom->createElement('term-option');
                $termElem->nodeValue = $opt;
                $elem->appendChild($termElem);
            }
        }
        return $elem;
    }