protected void setPropReportUnit(MResource res, JasperDesign jd) { if (!res.getValue().isMainReport()) jd.setProperty(AExporter.PROP_REPORTRESOURCE, res.getValue().getUriString()); MReportUnit repunit = res.getReportUnit(); if (repunit != null) { ResourceDescriptor runit = repunit.getValue(); if (runit != null) jd.setProperty(AExporter.PROP_REPORTUNIT, runit.getUriString()); } else jd.getPropertiesMap().removeProperty(AExporter.PROP_REPORTUNIT); }