docs: private void publishEvent(WSJobExecution objectToPublish, String eventToPublishTo) {
          if (getBatchEventsPublisher() != null) {
              getBatchEventsPublisher().publishJobExecutionEvent(objectToPublish, eventToPublishTo, correlationId);
          }
      }