/**
  * @param ImsQtiReader $item
  * @return QuestionBuilder
  */
 public static function factory(QtiImportSettings $settings)
 {
     if ($result = EssayBuilder::factory($settings)) {
         return $result;
     } else {
         if ($result = TruefalseBuilder::factory($settings)) {
             return $result;
         } else {
             if ($result = MatchingBuilder::factory($settings)) {
                 return $result;
             } else {
                 if ($result = NumericalBuilder::factory($settings)) {
                     return $result;
                 } else {
                     if ($result = DescriptionBuilder::factory($settings)) {
                         return $result;
                     } else {
                         if ($result = CalculatedSimpleBuilder::factory($settings)) {
                             return $result;
                         } else {
                             if ($result = CalculatedBuilder::factory($settings)) {
                                 return $result;
                             } else {
                                 if ($result = CalculatedMultichoiceBuilder::factory($settings)) {
                                     return $result;
                                 } else {
                                     if ($result = MultichoiceBuilder::factory($settings)) {
                                         return $result;
                                     } else {
                                         if ($result = ShortanswerBuilder::factory($settings)) {
                                             return $result;
                                         } else {
                                             if ($result = ClozeBuilder::factory($settings)) {
                                                 return $result;
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     return null;
 }
 public function create_question()
 {
     $result = parent::create_question();
     $result->qtype = 'calculatedsimple';
     return $result;
 }