for (Iterator<String> i = bugCollection.errorIterator(); i.hasNext();) { errorsElement.addElement(ANALYSIS_ERROR_ELEMENT_NAME).setText(i.next());
for (Iterator<AnalysisError> i = bugCollection.errorIterator(); i.hasNext();) { AnalysisError analysisError = i.next(); errorsElement.addElement(ANALYSIS_ERROR_ELEMENT_NAME).setText(analysisError.getMessage());
	private Document endDocument(Project project) {		// Save the error information		Element errorsElement = root.addElement(ERRORS_ELEMENT_NAME);		for (Iterator<String> i = bugCollection.errorIterator(); i.hasNext();) {			errorsElement.addElement(ANALYSIS_ERROR_ELEMENT_NAME).setText(i.next());		}		for (Iterator<String> i = bugCollection.missingClassIterator(); i.hasNext();) {			errorsElement.addElement(MISSING_CLASS_ELEMENT_NAME).setText(i.next());		}		return document;	}