public function afterElementSet(Element $qtiElement)
 {
     parent::afterElementSet($qtiElement);
     if ($qtiElement instanceof Hottext) {
         $item = $this->getRelatedItem();
         if (isset($item)) {
             $qtiElement->setRelatedItem($item);
         }
     }
 }
 public function afterElementSet(Element $qtiElement)
 {
     parent::afterElementSet($qtiElement);
     if ($qtiElement instanceof Interaction) {
         $item = $this->getRelatedItem();
         if (isset($item)) {
             if (!is_null($item->getResponseProcessing())) {
                 $item->getResponseProcessing()->takeNoticeOfAddedInteraction($qtiElement, $item);
             }
             $qtiElement->setRelatedItem($item);
         }
     }
 }