if (text != null) {
String html = getHtml(exchange, normalizedMessage); if ((text != null) && (html == null)) {
    public void prepareMessage(MimeMessage mimeMessage, MessageExchange exchange, NormalizedMessage normalizedMessage) throws javax.mail.MessagingException {        try {            Address to = getTo(exchange, normalizedMessage);            if (to != null) {                mimeMessage.setRecipient(Message.RecipientType.TO, to);            }            Address cc = getCc(exchange, normalizedMessage);            if (cc != null) {                mimeMessage.setRecipient(Message.RecipientType.CC, cc);            }            Address bcc = getBcc(exchange, normalizedMessage);            if (bcc != null) {                mimeMessage.setRecipient(Message.RecipientType.BCC, bcc);            }            Address from = getFrom(exchange, normalizedMessage);            if (from != null) {                mimeMessage.setFrom(from);            }            String text = getText(exchange, normalizedMessage);            if (text != null) {                mimeMessage.setText(text);            }            String subject = getSubject(exchange, normalizedMessage);            if (subject != null) {                mimeMessage.setSubject(subject);            }            Date sentDate = getSentDate(exchange, normalizedMessage);            if (sentDate != null) {                mimeMessage.setSentDate(sentDate);            }            Address[] replyTo = getReplyTo(exchange, normalizedMessage);            if (replyTo != null) {                mimeMessage.setReplyTo(replyTo);            }        }        catch (MessagingException e) {            throw new javax.mail.MessagingException(e.getMessage(), e);        }        catch (TransformerException e) {            throw new javax.mail.MessagingException(e.getMessage(), e);        }    }