if (mpi.getContentType().match(Mime.CT_TEXT_HTML))
if (mpi.getContentType().equals(Mime.CT_TEXT_HTML))
    protected static String getOrigHtml(MimeMessage mm) throws ServiceException {        try {            List /*<MPartInfo>*/ parts = Mime.getParts(mm);            for (Iterator it = parts.iterator(); it.hasNext(); ) {                MPartInfo mpi = (MPartInfo) it.next();                                if (mpi.getContentType().match(Mime.CT_TEXT_HTML))                    return (String)(mpi.getMimePart().getContent());            }            return null;        } catch (IOException e) {            throw ServiceException.FAILURE("IOException "+e, e);        } catch (MessagingException e) {            throw ServiceException.FAILURE("MessagingException "+e, e);        }    }