{
returnResult = tempFolder + "readonly.xml";
ByteArrayOutputStream outputByteArray = new ByteArrayOutputStream();
outStream = new FileOutputStream(new File(returnResult));
JRXmlExporter xmlExporter = new JRXmlExporter();
xmlExporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
xmlExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputByteArray);
xmlExporter.setParameter(JRExporterParameter.CHARACTER_ENCODING, "UTF-8");
xmlExporter.exportReport();
outStream.write(outputByteArray.toByteArray());
} else
if (outputFormat.compareToIgnoreCase("CSV") == 0)
{