/**
  * @param ImportPart               $importPart
  * @param EventDispatcherInterface $dispatcher
  * @param array                    $options
  *
  * @return ReaderInterface
  */
 protected function createImportPartReader(ImportPart $importPart, EventDispatcherInterface $dispatcher, array $options = [])
 {
     $import = $importPart->getImport();
     $transport = $importPart->getTransportConfig();
     $resourceType = ReaderBuilderInterface::RESOURCE_TYPE_PART;
     return $this->createReader($import, $transport, $resourceType, $dispatcher, $options);
 }
 /**
  * @param ImportPart $part
  *
  * @return bool
  */
 protected function validate(ImportPart $part)
 {
     // validate that we have a valid transport config
     try {
         TransportFactory::createTransportFromConfig($part->getTransportConfig());
     } catch (\RuntimeException $e) {
         $part->setError($e->getMessage());
         return false;
     }
     return true;
 }