DetectorFactoryCollection.instance();
	public static void main(String[] args) throws Exception {		if (args.length > 1) {			System.err.println("Usage: " + PrintingBugReporter.class.getName() + "[<xmlFile>]");			System.exit(1);		}				PrintingBugReporter reporter = new PrintingBugReporter();				SortedBugCollection bugCollection = new SortedBugCollection();		if (args.length > 0)			bugCollection.readXML(args[0], new Project());		else			bugCollection.readXML(System.in, new Project());				// Load plugins, in order to get message files		DetectorFactoryCollection.instance();				for (Iterator<BugInstance> i = bugCollection.iterator(); i.hasNext();) {			BugInstance warning = i.next();			reporter.printBug(warning);		}			}