public void process(Exchange exchange) throws Exception {
org.apache.camel.Message camelMessageIn = exchange.getIn();
Message esbMessageIn = getComposer().compose(camelMessageIn);
ServiceInvoker invoker = new ServiceInvoker(service);
if (async) {
invoker.deliverAsync(esbMessageIn);
}
else {
Message esbMessageOut = invoker.deliverSync(esbMessageIn, timeout);
org.apache.camel.Message camelMessageOut = getComposer().decompose(esbMessageOut, camelMessageIn);
exchange.setOut(camelMessageOut);