* @throws MessagingException
*/
public Object getBody(NormalizedMessage message) throws MessagingException {
Source content = message.getContent();
if (content instanceof JavaSource) {
JavaSource source = (JavaSource) content;
return source.getObject();
}
if (message instanceof NormalizedMessageImpl) {
return ((NormalizedMessageImpl) message).getBody();
}
return message.getProperty(PojoMarshaler.BODY);