protected function copyBatchJobToLog(BatchJob $batchJob, BatchJobLog $batchJobLog)
 {
     $batchJob->copyInto($batchJobLog, true);
     $batchJobLog->setJobId($batchJob->getId());
     return $batchJobLog;
 }