return jd;
}
protected static void registerParameters(DynamicJasperDesign jd, DynamicReport dr) {
for (Iterator iterator = dr.getParameters().iterator(); iterator.hasNext();) {
Parameter param= (Parameter) iterator.next();
JRDesignParameter jrparam = new JRDesignParameter();
jrparam.setName(param.getName());
jrparam.setValueClassName(param.getClassName());
try {
jd.addParameter(jrparam);
} catch (JRException e) {
throw new CoreException(e.getMessage(),e);