final LegendItemCollection legendItems = this.sources[s]
.getLegendItems();
if (legendItems != null) {
for (int i = 0; i < legendItems.getItemCount(); i++) {
final LegendItem item = legendItems.get(i);
final Block block = this.createLegendItemBlock(item);
this.items.add(block);
}
}
}
}