// use mandatory conversion
Object value = in.getMandatoryBody(type);
// create a new message container so we do not drag specialized message objects along
Message msg = new DefaultMessage();
msg.copyFrom(in);
msg.setBody(value);
if (exchange.getPattern().isOutCapable()) {
exchange.setOut(msg);
} else {