for (int j = 0; j < stackTrace.length; ++j) {
for (String aStackTrace : stackTrace) {
	private void emitErrors(XMLOutput xmlOutput) throws IOException {		//System.err.println("Writing errors to XML output");				xmlOutput.openTag(ERRORS_ELEMENT_NAME);				// Emit Error elements describing analysis errors		for (Iterator<AnalysisError> i = errorIterator(); i.hasNext(); ) {			AnalysisError error = i.next();			xmlOutput.openTag(AbstractBugCollection.ERROR_ELEMENT_NAME);						xmlOutput.openTag(AbstractBugCollection.ERROR_MESSAGE_ELEMENT_NAME);			xmlOutput.writeText(error.getMessage());			xmlOutput.closeTag(AbstractBugCollection.ERROR_MESSAGE_ELEMENT_NAME);						if (error.getExceptionMessage() != null) {				xmlOutput.openTag(AbstractBugCollection.ERROR_EXCEPTION_ELEMENT_NAME);				xmlOutput.writeText(error.getExceptionMessage());				xmlOutput.closeTag(AbstractBugCollection.ERROR_EXCEPTION_ELEMENT_NAME);			}						String stackTrace[] = error.getStackTrace();			if (stackTrace != null) {				for (int j = 0; j < stackTrace.length; ++j) {					xmlOutput.openTag(AbstractBugCollection.ERROR_STACK_TRACE_ELEMENT_NAME);					xmlOutput.writeText(stackTrace[j]);					xmlOutput.closeTag(AbstractBugCollection.ERROR_STACK_TRACE_ELEMENT_NAME);				}			}						xmlOutput.closeTag(AbstractBugCollection.ERROR_ELEMENT_NAME);		}				// Emit missing classes		XMLOutputUtil.writeElementList(xmlOutput, MISSING_CLASS_ELEMENT_NAME,			missingClassIterator());				xmlOutput.closeTag(ERRORS_ELEMENT_NAME);	}