protected function writeMetaData(\XMLWriter $xmlWriter, Workout $workout)
    {
        $xmlWriter->startElement('metadata');
        if ($workout->author() !== null) {
            $xmlWriter->startElement('author');
            $xmlWriter->writeElement('name', $workout->author()->name());
            $xmlWriter->endElement();
        }
        $xmlWriter->endElement();
    }