static Mailbox.SetAppointmentData deserializeSetAppointmentData(DataInput in, Mailbox mbox) throws IOException, MessagingException {
private Mailbox.SetAppointmentData deserializeSetAppointmentData( DataInput in, boolean attachmentIndexingEnabled) throws IOException, MessagingException {
    static Mailbox.SetAppointmentData deserializeSetAppointmentData(DataInput in, Mailbox mbox) throws IOException, MessagingException {        Mailbox.SetAppointmentData toRet = new Mailbox.SetAppointmentData();                try {            toRet.mForce = in.readBoolean();                    ICalTimeZone localTz = ICalTimeZone.decodeFromMetadata(new Metadata(in.readUTF()));                        toRet.mInv = Invite.decodeMetadata(mbox.getId(), new Metadata(in.readUTF()), null, localTz);                        long receivedDate = in.readLong();                        int dataLen = in.readInt();            byte[] rawPmData = new byte[dataLen];            in.readFully(rawPmData, 0, dataLen);            InputStream is = new ByteArrayInputStream(rawPmData);            MimeMessage mm = new Mime.FixedMimeMessage(JMSession.getSession(), is);                        toRet.mPm = new ParsedMessage(mm, receivedDate, mbox.attachmentsIndexingEnabled());        } catch (ServiceException ex) {            ex.printStackTrace();            throw new IOException("Cannot read serialized entry for CreateInvite "+ex.toString());        }                return toRet;    }