List list = new ArrayList();
addEntries(list);
for (int i = 0; i < list.size(); i++) {
InternalCacheEntry entry = (InternalCacheEntry) list.get(i);
entry.debugStructure(writer);
}
// Iterate over the nested groups validating them and getting a count
// of all the entries in the group.
List groups = getGroupList();