while (iterItem.hasNext()) {
item = iterItem.next();
item.setPercentValue((item.getValue() * 100) / totalCount);
}
Collections.sort(tmpList, new StatisticItemComparator());
int itemCount = 0;
Iterator<StatisticItem> statIter = tmpList.iterator();
while ((statIter.hasNext()) &&
(itemCount < Controller.getInstance().getPreferenceStore().getInt(PreferenceConstants.STATISTICVIEW_NB_MAX_ITEMS))) {