protected function add_body(ImsQtiWriter $item, $question)
 {
     $result = $item->add_itemBody();
     $text = $this->translate_question_text($question->questiontext, $question->questiontextformat, $question);
     foreach ($question->options->questions as $index => $subquestion) {
         $subquestion_id = "{#{$index}}";
         $subquestion_xml = $this->get_subquestion_xml($subquestion);
         $text = str_replace($subquestion_id, $subquestion_xml, $text);
     }
     $result->add_xml($text);
     return $result;
 }
 protected function add_body(ImsQtiWriter $item, $question)
 {
     $result = $item->add_itemBody();
     $text = $this->translate_question_text($question->questiontext, $question->questiontextformat, $question);
     $result->add_flow($text);
     $this->interaction = $this->add_interaction($result, $question);
     return $result;
 }