getContent

Get content object from a BodyPart. If this is a BodyPart for which
String or byte[] content has been wrapped in a DataHandler/DataSource,
unwrap the original object and return it. If this part contains a
Multipart object, return that.
Otherwise defer to the JavaMail getContent implementation, which
depends on a correctly configured CommandMap and is therefore not
reliable in all environments.

getContent

Get content object from a DataHandler. If this is a BodyPart for which
String or byte[] content has been wrapped in a DataSource,
unwrap the original object and return it. If this part contains a
Multipart object, return that.
Otherwise defer to the JavaMail getContent implementation, which
depends on a correctly configured CommandMap and is therefore not
reliable in all environments.