/**
  * Execute the job
  *
  * A job should finish itself after successful execution using the queue methods.
  *
  * @param QueueInterface $queue
  * @param Message $message The original message
  * @return bool TRUE if the job was executed successfully and the message should be finished
  */
 public function execute(QueueInterface $queue, Message $message)
 {
     $jobExecuted = false;
     try {
         $jobExecuted = $this->jsonGeneratorService->generateJsonFile($this->entityName);
     } catch (\Exception $e) {
         $this->logger->logException($e);
     }
     return $jobExecuted;
 }
 public static function generateJsonFile($entityName)
 {
     $fileService = new JsonGeneratorService();
     $fileService->generateJsonFile($entityName);
 }