public void prepare(final Message message) throws IOException {
if (!Boolean.TRUE.equals(message.getExchange().get(LocalConduit.DIRECT_DISPATCH))) {
final Exchange exchange = (Exchange)message.getExchange().get(LocalConduit.IN_EXCHANGE);
AbstractWrappedOutputStream cout
= new AbstractWrappedOutputStream() {
protected void onFirstWrite() throws IOException {
final PipedInputStream stream = new PipedInputStream();
wrappedStream = new PipedOutputStream(stream);
final MessageImpl m = new MessageImpl();