/**
  * @return Import
  */
 public function rebuild(ImportRun $importRun)
 {
     $importerId = $importRun->getConfiguration()->getImporterId();
     $importer = $this->importerRepository->get($importerId);
     if ($importer->getSourceStorage()) {
         $sourceStorage = $importer->getSourceStorage();
     } else {
         $sourceStorage = $this->storageLocator->getStorage($importRun->getConfiguration()->getSourceStorageSelection());
     }
     return $this->factorImport($importer, $sourceStorage, $importRun);
 }
 public function getConvertData()
 {
     return array(array(new ImportProcessEvent(), array('a' => 1), array('a' => 1)), array($this->createEvent(), array('a' => 1), array('a' => 1)), array($this->createEvent(ImportRun::create()->setContext(array('b' => 2))), array('a' => 1), array('a' => 1, 'mycontext' => array('b' => 2)), 'mycontext'));
 }