this.requestsOut = ctx.getBean("stepExecutionRequests.output", MessageChannel.class);
this.requestsIn = ctx.getBean("stepExecutionRequests.input", MessageChannel.class);
this.repliesOut = ctx.getBean("stepExecutionReplies.output", MessageChannel.class);
this.repliesIn = ctx.getBean("stepExecutionReplies.input", MessageChannel.class);
this.bus = new LocalMessageBus();
((LocalMessageBus) this.bus).setApplicationContext(ctx);
this.bus.bindRequestor("foo", this.requestsOut, this.repliesIn, null);
this.bus.bindReplier("foo", this.requestsIn, this.repliesOut, null);
}