};
}
@Override
public void renderDocument() {
ReportOutputType outputType = reportTemplate.getOutputType();
if (ReportOutputType.custom.equals(outputType) || ReportOutputType.csv.equals(outputType) || ReportOutputType.html.equals(outputType)) {
writeHtmlDocument(rootBand, outputStream);
} else if (ReportOutputType.pdf.equals(outputType)) {
ByteArrayOutputStream htmlOutputStream = new ByteArrayOutputStream();
writeHtmlDocument(rootBand, htmlOutputStream);