collector.collect(dataset);
JRExpressionCollector datasetCollector = collector.getCollector(dataset);
for (Iterator it = dataset.getSeries().iterator(); it.hasNext();)
{
BarSeries series = (BarSeries) it.next();
datasetCollector.addExpression(series.getSeriesExpression());
datasetCollector.addExpression(series.getCategoryExpression());
datasetCollector.addExpression(series.getValueExpression());
}
}