try { deleteDocuments(new int[] { mailItemId }); } catch(IOException e) { mLog.debug("indexDocument ignored IOException deleting documents (index does not exist yet)");
if (deleteFirst) { try { deleteDocuments(new int[] { mailItemId }); } catch(IOException e) { mLog.debug("indexDocument ignored IOException deleting documents (index does not exist yet?)", e); }
    synchronized public void indexDocument(Mailbox mbox, IndexItem redo, int mailItemId, ParsedDocument pd)    throws ServiceException {        initAnalyzer(mbox);        try {            try {                deleteDocuments(new int[] { mailItemId });            } catch(IOException e) {                mLog.debug("indexDocument ignored IOException deleting documents (index does not exist yet)");            }            addDocument(redo, pd.getDocument(), mailItemId, pd.getCreatedDate(), false);        } catch (IOException e) {            throw ServiceException.FAILURE("indexDocument caught Exception", e);        }    }