result.setDestination(msg.getDestination());
result.setHeaders(headers);
//get the adapter
ServiceAdapter adapter = (ServiceAdapter) endpoint;
//log.debug("Invoke: {}", adapter.invoke(msg));
Object o = adapter.invoke(msg);
//the result of the invocation will make up the message body
//AsyncMessage ext = new AsyncMessage();
//ext.setClientId(msg.getClientId());
//ext.setCorrelationId(result.getMessageId());
//ext.setBody(o);