@Override
protected JRDataSource createDataSource() {
if ((transaction.getPositions()!=null) && (transaction.getPositions().size()>0)) {
ArrayList<HashMap> posLines = new ArrayList<HashMap>();
this.addLines(transaction.getPositions(), posLines);
JRMapCollectionDataSource ds = new JRMapCollectionDataSource(posLines);
return ds;
} else {
return new JREmptyDataSource();
}
}