public void scan(Document document) throws MissingNodeException, IOException { List bugInstanceList = document.selectNodes("/BugCollection/BugInstance");
public void scan(Document document, final String appName) throws MissingNodeException, IOException { List bugInstanceList = getBugInstanceList(document);
	public void scan(Document document) throws MissingNodeException, IOException {		List bugInstanceList = document.selectNodes("/BugCollection/BugInstance");		for (Iterator i = bugInstanceList.iterator(); i.hasNext(); ) {			final Element element = (Element) i.next();			scanAttributeList(new AttributeCallback() {				public void apply(Attribute attribute) throws MissingNodeException {					attribute.scan(element);				}			});		}	}