/**
  * Store object
  *
  * @return void
  */
 function doStore()
 {
     if ($msg = $this->_obj->store()) {
         CAppUI::setMsg($msg, UI_MSG_ERROR);
         if ($this->redirectError) {
             $this->redirect =& $this->redirectError;
         }
     } else {
         $id = $this->objectKey;
         CValue::setSession($id, $this->_obj->_id);
         CAppUI::setMsg($this->_old->_id ? $this->modifyMsg : $this->createMsg, UI_MSG_OK);
         // Store additional object reference to the CExObject
         $ex_object_guid = CMbArray::get($this->request, "_ex_object_guid");
         if ($ex_object_guid) {
             $obj = $this->_obj;
             /** @var CExObject $ex_object */
             $ex_object = CStoredObject::loadFromGuid($ex_object_guid);
             if ($ex_object->_id) {
                 $ex_object->additional_class = $obj->_class;
                 $ex_object->additional_id = $obj->_id;
                 $ex_object->store();
             }
         }
         if ($this->redirectStore) {
             $this->redirect =& $this->redirectStore;
         }
     }
 }