public function collect()
 {
     if ($this->isInProgressItemProcess()) {
         return;
     }
     $this->setCollectionLogIndex(1);
     $list = $this->loadSourceEntities();
     $this->addToProcessCollection($list);
     $this->saveItemsToProcess();
     $this->setItemLogIndex(1);
     $this->setCollectionLogFinish();
     parent::collect();
 }
 public function collect()
 {
     if ($this->isInProgressItemProcess()) {
         return;
     }
     $this->setCollectionLogIndex(1);
     $request = $this->requestModel->getCollectionRequest();
     $list = $this->client->getCollectionRequest($request);
     if ($this->client->getError()) {
         $this->addError($this->client->getError());
         return;
     }
     $this->addToProcessCollection($list);
     $this->saveItemsToProcess();
     $this->setItemLogIndex(1);
     $this->setCollectionLogFinish();
     parent::collect();
 }