ZOrganizer originalOrganizer = appt.getDefaultInvite().getOrganizer(); appt.processNewInvite(originalOrganizer, pm, inv, force, folderId, volumeId);
appt.processNewInvite(pm, inv, force, folderId, volumeId);
    public synchronized int[] addInvite(OperationContext octxt, Invite inv, int folderId, boolean force, ParsedMessage pm)    throws ServiceException {    	        byte[] data = null;                if (pm != null) {        	try {        		data = pm.getRawData();        	} catch (MessagingException me) {                throw MailServiceException.MESSAGE_PARSE_ERROR(me);        	} catch (IOException ie) {        		throw ServiceException.FAILURE("Caught IOException", ie);        	}        }    	        CreateInvite redoRecorder = new CreateInvite(mId, inv, folderId, data, force);        CreateInvite redoPlayer = (octxt == null ? null : (CreateInvite) octxt.player);        short volumeId =            redoPlayer == null ? Volume.getCurrentMessageVolume().getId()                               : redoPlayer.getVolumeId();                boolean success = false;        try {            beginTransaction("addInvite", octxt, redoRecorder);                        if (redoPlayer == null || redoPlayer.getAppointmentId() == 0) {                assert(inv.getMailItemId() == 0);                 int mailItemId = getNextItemId(Mailbox.ID_AUTO_INCREMENT);                inv.setInviteId(mailItemId);            } else {                // id already set before we stored the invite in the redoRecorder!!!            }                        Appointment appt = getAppointmentByUid(inv.getUid());            if (appt == null) {                 // ONLY create an appointment if this is a REQUEST method...otherwise don't.                if (inv.getMethod().equals("REQUEST") || inv.getMethod().equals("PUBLISH")) {                    appt = createAppointment(folderId, volumeId, "", inv.getUid(), pm, inv);                } else {//                  mLog.info("Mailbox " + getId()+" Message "+getId()+" SKIPPING Invite "+method+" b/c not a REQUEST and no Appointment could be found");                    return null; // for now, just ignore this Invitation                }            } else {                ZOrganizer originalOrganizer = appt.getDefaultInvite().getOrganizer();                appt.processNewInvite(originalOrganizer, pm, inv, force, folderId, volumeId);            }            redoRecorder.setAppointmentAttrs(appt.getId(),                                             appt.getFolderId(),                                             volumeId);            success = true;            return new int[] { appt.getId(), inv.getMailItemId() };        } finally {            endTransaction(success);        }            }