String[] types = {"in", "out", "fault" };
for (int i = 0; i < types.length; i++) {
String type = types[i];
NormalizedMessage nm = me.getMessage(type);
if (nm != null) {
d.add(Field.UnStored("org.apache.servicemix." + type + ".contents", st.contentToString(nm)));
addMessagePropertiesToDocument(nm, d, type);
}
}
return d;
} catch (MessagingException mse) {