message.setSubject(MimeUtility.encodeWord(subject.toString()));
    public void setSubject(Object subject) throws Exception {        if (subject == null || subject == Undefined.instance) {            return;        }        message.setSubject(MimeUtility.encodeWord(subject.toString()));    }