//Adding style templates templates
JRReportTemplate[] templates = jd.getTemplates();
if (templates != null){
for (int i = 0; i < templates.length; i++) {
djd.addTemplate(templates[i]); //TODO Make a test for this!
}
}
//even though some of this options may be present in the template, current values
//in the DynamicReport should prevail