code: private void publishEvent(WSJobExecution objectToPublish, String eventToPublishTo) {
          if (getBatchEventsPublisher() != null) {
              getBatchEventsPublisher().publishJobExecutionEvent(objectToPublish, eventToPublishTo, correlationId);
          }
      }
docs: Publish jms topic if batch jms event is available
  
  @param objectToPublish WSJobExecution
  @param eventToPublish