tempReport.setDataFactory(new StarReportDataFactory(dataSourceFactory));
tempReport.setJobProperties(definition.getProcessingParameters().copy());
final ReportParameters inputParameters = tempReport.getInputParameters();
final ParameterMap queryParameters = definition.getQueryParameters();
final String[] paramKeys = queryParameters.keys();
for (int i = 0; i < paramKeys.length; i++)
{
final String key = paramKeys[i];
inputParameters.put(key, queryParameters.get(key));
}