private static void generateHTML(final AnalysisData analysisData, final File analyzeOuputDirectory) throws TransformerFactoryConfigurationError {
		// Write HTML report
		if (analysisData.rows != null && analysisData.rows.length > 0) {
	        try {
				TransformerFactory factory = TransformerFactory.newInstance();
				InputStream xslIS = ClassLoader.getSystemResourceAsStream("analyze.xsl");
				if(xslIS == null) {
					xslIS = ClassLoader.getSystemResourceAsStream("/analyze.xsl");
				}
				if(xslIS == null) {
					xslIS = AnalyzeLauncher.class.getClassLoader().getResourceAsStream("analyze.xsl");
				}
				if(xslIS == null) {
					xslIS = AnalyzeLauncher.class.getClassLoader().getResourceAsStream("/analyze.xsl");
				}
				if(xslIS == null) {
					xslIS = Thread.currentThread().getContextClassLoader().getResourceAsStream("analyze.xsl");
				}
				if(xslIS == null) {
					xslIS = Thread.currentThread().getContextClassLoader().getResourceAsStream("/analyze.xsl");
				}
				if(xslIS == null) {
					xslIS = new FileInputStream(new File("analyze.xsl"));
				}
				
				Source xslt = new StreamSource(xslIS);
				Transformer transformer = factory.newTransformer(xslt);
				
				final File analysisFile =  new File(analyzeOuputDirectory, "analyze.xml");
				if(analysisFile.exists() && analysisFile.length() > 0) {
					Source text = new StreamSource(analysisFile);
					transformer.transform(text, new StreamResult(new File(analyzeOuputDirectory, "analyze.html")));	
				}
			} catch (final Exception e) {
				e.printStackTrace();
			}	
		}
	}