@Override
	public void generate() throws GeneratorException {
		XHTMLOptions optionsHTML = XHTMLOptions.create();
        // Extract image
        File imageFolder = new File(report.getOutput() + "/images/");
        optionsHTML.setExtractor(new FileImageExtractor(imageFolder));

        optionsHTML.URIResolver(new FileURIResolver(imageFolder));
        
		Options options = Options.getTo(ConverterTypeTo.XHTML).via(ConverterTypeVia.XWPF).subOptions(optionsHTML);
		try {
			report.generate(options, report.getOutput()+".html");
		} catch (XDocConverterException e) {
			throw new GeneratorException(GeneratorError.HTML_CONVERTION_ERROR,"Error while converting the HTML:"+e.getMessage());
		} catch (XDocReportException e) {
			throw new GeneratorException(GeneratorError.HTML_GENERATION_ERROR,"Error while generating the HTML:"+e.getMessage());
		}
	}