if (operationName != null) {
exchangeIn = serviceReference.createExchange(operationName, handler);
} else {
exchangeIn = serviceReference.createExchange(handler);
}
Message messageIn = exchangeIn.createMessage();
Context contextIn = exchangeIn.getContext(messageIn);
for (Map.Entry<String,Object> entry : request.getContext().entrySet()) {
contextIn.setProperty(entry.getKey(), entry.getValue());
}
Object contentIn = request.getContent();