/**
  * Handles asynchronous insertion of the new entity into
  * corresponding grid during cron job.
  *
  * Also method is used in the next events:
  *
  * - config_data_dev_grid_async_indexing_disabled
  *
  * Works only if asynchronous grid indexing is enabled
  * in global settings.
  *
  * @return void
  */
 public function asyncInsert()
 {
     if ($this->globalConfig->getValue('dev/grid/async_indexing')) {
         $this->entityGrid->refreshBySchedule();
     }
 }