new AddMessages(bugCollection, document).execute();
	public void finish() {		try {			BugCollection bugCollection = getBugCollection();			// Decorate the XML with messages to display			Document document = bugCollection.toDocument(getProject());			new AddMessages(bugCollection, document).execute();			// Get the stylesheet as a StreamSource.			// First, try to load the stylesheet from the filesystem.			// If that fails, try loading it as a resource.			InputStream xslInputStream;			if (FindBugs.DEBUG) System.out.println("Attempting to load stylesheet " + stylesheet);			try {				xslInputStream = new BufferedInputStream(new FileInputStream(stylesheet));			} catch (FileNotFoundException fnfe) {				xslInputStream = this.getClass().getClassLoader().getResourceAsStream(stylesheet);				if (xslInputStream == null)					throw new IOException("Could not load HTML generation stylesheet " + stylesheet);			}			StreamSource xsl = new StreamSource(xslInputStream);			xsl.setSystemId(stylesheet);			// Create a transformer using the stylesheet			TransformerFactory factory = TransformerFactory.newInstance();			Transformer transformer = factory.newTransformer(xsl);			// Source document is the XML generated from the BugCollection			DocumentSource source = new DocumentSource(document);			// Write result to output stream			StreamResult result = new StreamResult(outputStream);			// Do the transformation			transformer.transform(source, result);		} catch (Exception e) {			logError("Could not generate HTML output", e);			if (FindBugs.DEBUG) e.printStackTrace();		}	}