final ReportParameterValues parameterValues = new ReportParameterValues();
parameterValues.put("parameter", pvalue);
sdf.queryData("default", parameterValues);
sdf.close();
final MasterReport report = new MasterReport();
report.setDataFactory(sdf);
final DefaultListParameter listParameter =
new DefaultListParameter("params", "CUSTOMERNUMBER", "CUSTOMERNUMBER", "parameter", true, true, Integer[].class);
listParameter.setMandatory(mandatory);
final ModifiableReportParameterDefinition definition =
(ModifiableReportParameterDefinition) report.getParameterDefinition();
definition.addParameterDefinition(listParameter);
report.getParameterValues().put("parameter", pvalue);
return (execGraphics2D(report));
}