return message;
}
}
// Create a new spring message and copy the attributes and body from the camel message
DefaultMessageHeader messageHeader = new DefaultMessageHeader();
Map<String, Object> headers = camelMessage.getHeaders();
for (String key : headers.keySet()) {
Object value = headers.get(key);
messageHeader.setAttribute(key, value);
}
return new GenericMessage(camelMessage.getBody(), messageHeader);
}