&& this.messageContentObject == null) {
return null;
} else if (this.messageContentObject != null) {
String messageContent = this.messageContentObject.toString();
byte[] messageContentBytes;
ContentType contentTypeHeader = getContentTypeHeader();
if (contentTypeHeader != null) {
String charset = contentTypeHeader.getCharset();
if (charset != null) {
messageContentBytes = messageContent.getBytes(charset);
} else {
messageContentBytes = messageContent
.getBytes(contentEncodingCharset);
}
} else
messageContentBytes = messageContent
.getBytes(contentEncodingCharset);
return messageContentBytes;
} else if (this.messageContent != null) {
byte[] messageContentBytes;
ContentType contentTypeHeader = getContentTypeHeader();
if (contentTypeHeader != null) {
String charset = contentTypeHeader.getCharset();
if (charset != null) {
messageContentBytes = this.messageContent
.getBytes(charset);
} else {
messageContentBytes = this.messageContent