/** * {@inheritdoc} * * @return CustomizationFileInterface * @throws \UnexpectedValueException */ public function getCustomizationService() { if (!$this->_fileService && $this->hasData('file_type')) { $this->_fileService = $this->_fileServiceFactory->create($this->getData('file_type')); } elseif (!$this->_fileService) { throw new \UnexpectedValueException('Type of file is empty'); } return $this->_fileService; }