synchronized public void indexMessage(Mailbox mbox, IndexItem redo, int messageId, ParsedMessage pm)
synchronized public void indexMessage(Mailbox mbox, IndexItem redo, boolean deleteFirst, int messageId, ParsedMessage pm)
    synchronized public void indexMessage(Mailbox mbox, IndexItem redo, int messageId, ParsedMessage pm)    throws ServiceException {        initAnalyzer(mbox);        try {            List<Document> docList = pm.getLuceneDocuments();            if (docList != null) {                Document[] docs = new Document[docList.size()];                docs = docList.toArray(docs);                addDocument(redo, docs, messageId, pm.getReceivedDate(), false);            }        } catch (IOException e) {            throw ServiceException.FAILURE("indexMessage caught IOException", e);        }    }