}
}
}
if (exchange.getOutMessage() != null) {
Message out = exchange.getOutMessage();
if (out.containsKey(Message.PROTOCOL_HEADERS)) {
Map<String, List<String>> heads = CastUtils
.cast((Map<?, ?>)exchange.getOutMessage().get(Message.PROTOCOL_HEADERS));
if (heads.containsKey("Content-Type")) {
List<String> ct = heads.get("Content-Type");
exchange.getOutMessage().put(Message.CONTENT_TYPE, ct.get(0));