public static void scan(String filename, String category) throws Exception {
public void scan(String filename) throws Exception {
	public static void scan(String filename, String category) throws Exception {		BugCollection bugCollection = new SortedBugCollection();		bugCollection.readXML(filename, new Project());		Iterator<BugInstance> i = bugCollection.iterator();		while (i.hasNext()) {			BugInstance bugInstance = i.next();			String annotation = bugInstance.getAnnotationText();			if (annotation.equals(""))				continue;			if (category != null && !bugInstance.getAbbrev().equals(category))				continue;			Set<String> contents = parseAnnotation(annotation);			if (contents.contains("GOOD_EXAMPLE") || contents.contains("EXCELLENT_EXAMPLE"))				dumpBug(bugInstance, filename);		}	}