String ct = mpi.getContentType().getBaseType();
String ct = mpi.getContentType();
	private void analyzeMessage() throws MessagingException, ServiceException {        if (mAnalyzed)            return;        mAnalyzed = true;        mLuceneDocuments = new ArrayList<Document>();        if (DebugConfig.disableMessageAnalysis) {			// Note this also suppresses fragment support in conversation			// feature.  (see getFragment() call at end of this method)			return;		}		MPartInfo mpiBody = Mime.getBody(mMessageParts, false);		TopLevelMessageHandler allTextHandler = new TopLevelMessageHandler(mMessageParts);        int numParseErrors = 0;        ServiceException conversionError = null;        for (MPartInfo mpi : mMessageParts) {            try {                analyzePart(mpi, mpiBody, allTextHandler);            } catch (MimeHandlerException e) {                numParseErrors++;                String pn = mpi.getPartName();                String ct = mpi.getContentType().getBaseType();                String msgid = getMessageID();                sLog.warn("Parse error on MIME part " + pn +                          " (" + ct + ", Message-ID: " + msgid + ")", e);                if (ConversionException.isTemporaryCauseOf(e) && conversionError == null) {                    conversionError = ServiceException.FAILURE("failed to analyze part", e.getCause());                }            } catch (ObjectHandlerException e) {                numParseErrors++;                String pn = mpi.getPartName();                String ct = mpi.getContentType().getBaseType();                String msgid = getMessageID();                sLog.warn("Parse error on MIME part " + pn +                          " (" + ct + ", Message-ID: " + msgid + ")", e);            }		}        if (miCalendar != null)            allTextHandler.hasCalendarPart(true);        if (numParseErrors > 0) {            String msgid = getMessageID();            String sbj = getSubject();            sLog.warn("Message had parse errors in " + numParseErrors +                      " parts (Message-Id: " + msgid + ", Subject: " + sbj + ")");        }        mLuceneDocuments.add(allTextHandler.getDocument(this));        for (Document doc : mLuceneDocuments) {    		if (doc != null) {    			// foreach doc we are adding, add domains of message    			//msgHandler.setEmailDomainsField(doc);    			allTextHandler.setLuceneHeadersFromContainer(doc, this);    		}    	}		mFragment = allTextHandler.getFragment();                // this is the first conversion error we encountered when analyzing all the parts        // raise it at the end so that we have any calendar info parsed         if (conversionError != null) {            throw conversionError;        }	}