private void setOrchestrationId(ChunkContext chunkContext) {
		this.orchestrationId = String.valueOf(
				chunkContext.getStepContext().getStepExecution().getJobExecution().getJobInstance().getInstanceId());

		ExecutionContext stepExecutionContext = chunkContext.getStepContext().getStepExecution().getExecutionContext();

		if (stepExecutionContext.containsKey(XD_ORCHESTRATION_ID)) {
			this.orchestrationId = (String) stepExecutionContext.get(XD_ORCHESTRATION_ID);
		}
		else {
			stepExecutionContext.put(XD_ORCHESTRATION_ID, this.orchestrationId);
		}
	}
Uses the {@link MessageBus} to execute a job deployed in a Spring XD cluster.

@param contribution The contribution to the step's metrics.  Not used in this case
@param chunkContext Used to get a handle on the JobExecution and JobInstance
@return RepeatStatus.FINISHED
@throws Exception
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/batch/tasklet/JobLaunchingTasklet.java