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);
 }
 private void getResources(MResource res, JasperDesign jd) throws Exception {
   if (res.getParent() instanceof MReportUnit) {
     for (INode n : res.getParent().getChildren()) {
       if (n instanceof MJar) {
         // download
       }
     }
   }
   // List<JRDesignElement> elements = ModelUtils.getAllElements(jd);
   // for (JRDesignElement ele : elements) {
   // if (ele instanceof JRDesignImage)
   // cacheResource(res, ((JRDesignImage) ele).getExpression());
   // else if (ele instanceof JRDesignSubreport) {
   // cacheResource(res, ((JRDesignSubreport) ele).getExpression());
   // // go recursively?
   // }
   // // get fonts?
   // }
 }