queueForIndexing(note, null);
queueForIndexing(note, false, null);
    public synchronized Note createNote(OperationContext octxt, String content, Rectangle location, byte color, int folderId)    throws ServiceException {        content = StringUtil.stripControlCharacters(content);        if (content == null || content.equals(""))            throw ServiceException.INVALID_REQUEST("note content may not be empty", null);        CreateNote redoRecorder = new CreateNote(mId, folderId, content, color, location);        boolean success = false;        try {            beginTransaction("createNote", octxt, redoRecorder);            CreateNote redoPlayer = (CreateNote) mCurrentChange.getRedoPlayer();            int noteId;            short volumeId;            if (redoPlayer == null) {                noteId = getNextItemId(ID_AUTO_INCREMENT);                volumeId = Volume.getCurrentMessageVolume().getId();            } else {                noteId = getNextItemId(redoPlayer.getNoteId());                volumeId = redoPlayer.getVolumeId();            }            Note note = Note.create(noteId, getFolderById(folderId), volumeId, content, location, color);            redoRecorder.setNoteId(note.getId());            redoRecorder.setVolumeId(note.getVolumeId());            queueForIndexing(note, null);            success = true;            return note;        } finally {            endTransaction(success);        }    }