/**
  * Handle category creation.
  *
  * @param array $batch
  */
 protected function handleNewCategory(array $batch)
 {
     if (isset($batch['create'])) {
         foreach ($batch['create'] as $newCategory) {
             $pimCategory = $newCategory['pimCategory'];
             $prestashopCategoryId = $this->webservice->sendNewCategory($newCategory['prestashopCategory']);
             $prestashopUrl = $this->getPrestashopUrl();
             $this->categoryMappingManager->registerCategoryMapping($pimCategory, $prestashopCategoryId, $prestashopUrl);
             $this->stepExecution->incrementSummaryInfo('category_created');
         }
     }
 }