* @throws MessagingException
*/
public static void setBody(NormalizedMessage message, Object body) throws MessagingException {
Source content = message.getContent();
if (content instanceof JavaSource) {
JavaSource source = (JavaSource) content;
source.setObject(body);
}
else if (message instanceof NormalizedMessageImpl) {
((NormalizedMessageImpl) message).setBody(body);
}
else {