// File or directory does not exist, create a new file compiled!
//put "true" to the parameter that not permits the validation on parameters of the subreport.
ContentServiceProxy contentServiceProxy = (ContentServiceProxy)getEnv().get(EngineConstants.ENV_CONTENT_SERVICE_PROXY);
HashMap requestParameters = new HashMap();
requestParameters.put("SBI_READ_ONLY_TEMPLATE", "true");
Content template = contentServiceProxy.readTemplate(subreportMeta.getDocumentId(), requestParameters);
template.getFileName();
logger.debug("Read the template.(subreport)"+template.getFileName());
InputStream is = null;
BASE64Decoder bASE64Decoder = new BASE64Decoder();
byte[] templateContent = bASE64Decoder.decodeBuffer(template.getContent());
is = new java.io.ByteArrayInputStream(templateContent);
String str = new String(templateContent);
SpagoBIAccessUtils util = new SpagoBIAccessUtils();
/* Dynamic template management: if the template is a zip file it is opened and every class are added to
* the classpath
*/
String flgTemplateStandard = "true"; // = subreportMeta.getTemplateType();
if (template.getFileName().indexOf(".zip") > -1) {
flgTemplateStandard = "false";
}
if (flgTemplateStandard.equalsIgnoreCase("false")){
File fileZip = new File (destDir, this.JS_FILE_ZIP+ i + JS_EXT_ZIP);