Message message = endpoint.getBinding().makeJmsMessage(exchange, in, session, null);
// get the reply to destination to be used from the reply manager
Destination replyTo = replyManager.getReplyTo();
if (replyTo == null) {
throw new RuntimeExchangeException("Failed to resolve replyTo destination", exchange);
}
JmsMessageHelper.setJMSReplyTo(message, replyTo);
replyManager.setReplyToSelectorHeader(in, message);
String correlationId = determineCorrelationId(message, provisionalCorrelationId);