/**
  * Only save if field was shown on the client, and is not empty.
  *
  * @param DataObjectInterface $record
  */
 public function saveInto(DataObjectInterface $record)
 {
     if (!$this->isSaveable()) {
         return;
     }
     if (!($this->canBeEmpty && !$this->value)) {
         parent::saveInto($record);
     }
 }