/**
  * @return DefaultModel|ModelInterface
  */
 public function getEmptyModel()
 {
     $session = \Session::getInstance();
     $exportSettings = $session->get(static::SESSION_NAME);
     $model = parent::getEmptyModel();
     if ($exportSettings && is_array($exportSettings)) {
         $model->setPropertiesAsArray($exportSettings);
     }
     return $model;
 }
 /**
  * {@inheritdoc}
  */
 public function getEmptyModel()
 {
     if ($this->model === null) {
         $this->model = parent::getEmptyModel();
         $this->model->setId(1);
         if (file_exists($this->fileName)) {
             if ($this->mode == self::MODE_DIFF) {
                 require_once $this->fileName;
             } else {
                 require $this->fileName;
             }
         }
         $values = $this->resolveValues($GLOBALS);
         $this->model->setPropertiesAsArray($values);
     }
     return $this->model;
 }