/**
  * @param Import                   $import
  * @param array                    $transport
  * @param string                   $resourceType
  * @param EventDispatcherInterface $dispatcher
  * @param array                    $options
  *
  * @return ReaderInterface
  */
 protected function createReader(Import $import, array $transport, $resourceType, EventDispatcherInterface $dispatcher, array $options = [])
 {
     $destinationDir = $this->importStorage->getImportDir($import);
     $feed = $import->getFeed();
     $type = $this->importRegistry->getReaderType($feed->getReaderType());
     $builder = $this->readerBuilderFactory->create($dispatcher, $destinationDir);
     $options = array_merge($options, $feed->getReaderOptions());
     return $builder->build($type, $transport, $resourceType, $options);
 }
 /**
  * @param Import $import
  */
 protected function removeFeed(Import $import)
 {
     $this->importStorage->removeImport($import);
 }