class StepExecutionInterceptor implements ChannelInterceptor {

	/**
	 * The name of the header
	 */
	public static final String STEP_EXECUTION = "stepExecution";

	@Override
	public Message<?> preSend(Message<?> message, MessageChannel channel) {<FILL_FUNCTION_BODY>}

}

		StepContext context = StepSynchronizationManager.getContext();
		if (context == null) {
			return message;
		}
		return MessageBuilder.fromMessage(message).setHeader(STEP_EXECUTION, context.getStepExecution()).build();
	
<no_super_class>