for (AbstractEntity item : sortedColl) {
com.melitronic.domain.entity.ItemGroup ig =
(com.melitronic.domain.entity.ItemGroup)item;
ItemGroup spr = getUC().getItemGroup(ig);
data.add(spr);
for (AbstractEntity i2 : ig.getItem()) {
if (i2 instanceof com.melitronic.domain.entity.Issue) {
com.melitronic.domain.entity.Issue domainII =
(com.melitronic.domain.entity.Issue)i2;
Issue it = getUC().getIssue(domainII);
spr.addChild(it);
}
else {
com.melitronic.domain.entity.Item domainII =
(com.melitronic.domain.entity.Item)i2;
Item it = getUC().getItem(domainII);
spr.addChild(it);
}
}
}
return data;