// Complete the XML representation with the text part of the message
Representation content = null;
if (message.getContent() instanceof Multipart) {
// Look for the text part of the mail.
final Multipart multipart = (Multipart) message.getContent();
for (int i = 0, n = multipart.getCount(); i < n; i++) {
final Part part = multipart.getBodyPart(i);
final String disposition = part.getDisposition();
if (disposition != null) {
if (disposition.equals(Part.ATTACHMENT)
|| disposition.equals(Part.INLINE)) {