ToXML.encodeApptInviteAsMP(response, lc, op.getAppt(), iid, wantHTML, part);
ToXML.encodeApptInviteAsMP(response, lc, op.getAppt(), iid, part, wantHTML, neuter);
    public Element handle(Element request, Map<String, Object> context) throws ServiceException {        ZimbraSoapContext lc = getZimbraSoapContext(context);        Mailbox mbox = getRequestedMailbox(lc);        OperationContext octxt = lc.getOperationContext();        Session session = getSession(context);                Element eMsg = request.getElement(MailService.E_MSG);        ItemId iid = new ItemId(eMsg.getAttribute(MailService.A_ID), lc);        boolean raw = eMsg.getAttributeBool(MailService.A_RAW, false);        boolean read = eMsg.getAttributeBool(MailService.A_MARK_READ, false);        String part = eMsg.getAttribute(MailService.A_PART, null);                GetMsgOperation op = new GetMsgOperation(session, octxt, mbox, Requester.SOAP, iid, raw, read, part);                Element response = lc.createElement(MailService.GET_MSG_RESPONSE);        if (raw) {            ToXML.encodeMessageAsMIME(response, lc, op.getMsg(), part);        } else {            boolean wantHTML = eMsg.getAttributeBool(MailService.A_WANT_HTML, false);            if (op.getMsg() != null)                ToXML.encodeMessageAsMP(response, lc, op.getMsg(), wantHTML, part);            else if (op.getAppt() != null)                ToXML.encodeApptInviteAsMP(response, lc, op.getAppt(), iid, wantHTML, part);        }        return response;    }