/**
  * {@inheritdoc}
  */
 protected function setItem(ItemPipelineEvent $event)
 {
     if (!parent::setItem($event)) {
         return false;
     }
     if (!$this->importItem instanceof SyncExecuteItem) {
         return false;
     }
     $tempSyncStorageData = $this->importItem->getSyncStorageData();
     if (!isset($tempSyncStorageData['type'])) {
         $this->log(sprintf('No operation type defined for document id: %s', $this->importItem->getDocument()->getId()), LogLevel::ERROR);
         return false;
     }
     $this->syncStorageData = $tempSyncStorageData;
     return true;
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(Manager $manager)
 {
     parent::__construct($manager, 'ONGR\\ConnectionsBundle\\Pipeline\\Item\\ImportItem');
 }