code: private void publishPurgeEvent(WSJobInstance jobInstance) {
          if (eventsPublisher != null) {
              eventsPublisher.publishJobInstanceEvent(jobInstance, BatchEventsPublisher.TOPIC_INSTANCE_PURGED, null);
          }
      }
docs: Publish events
  
  @param jobInstance
  @param topicToPublish