code: private void publishEvent(WSJobExecution jobEx, String topicToPublish, String correlationId) {
          if (eventsPublisher != null) {
              eventsPublisher.publishJobExecutionEvent(jobEx, topicToPublish, correlationId);
          }
      }
docs: Helper method to publish event
  
  @param jobEx
  @param topicToPublish
  @param correlationId