data.modMetadata = mbox.getOperationChangeID(); data.modContent  = mbox.getOperationChangeID();
data.contentChanged(mbox);
    static Note create(int id, Folder folder, String content, Rectangle location, byte color) throws ServiceException {        if (folder == null || !folder.canContain(TYPE_NOTE))            throw MailServiceException.CANNOT_CONTAIN();        content = StringUtil.stripControlCharacters(content);        if (content == null || content.equals(""))            throw ServiceException.INVALID_REQUEST("notes may not be empty", null);        if (location == null)            location = new Rectangle();        Mailbox mbox = folder.getMailbox();        UnderlyingData data = new UnderlyingData();        data.id          = id;        data.type        = TYPE_NOTE;        data.folderId    = folder.getId();        data.indexId     = id;        data.date        = mbox.getOperationTimestamp();        data.subject     = content;        data.metadata    = encodeMetadata(location, color);        data.modMetadata = mbox.getOperationChangeID();        data.modContent  = mbox.getOperationChangeID();        DbMailItem.create(mbox, data);                Note note = new Note(mbox, data);        note.finishCreation(null);        return note;    }