Iterator indexIterator = groupedResult.iterator();
while (indexIterator.hasNext()) {
ArticleIndex articleIndex = (ArticleIndex) indexIterator.next();
Iterator topicIterator = articleIndex.getTopics().iterator();
while (topicIterator.hasNext()) {
Topic topic = (Topic) topicIterator.next();
Iterator descriptionIterator = topic.getDescriptionList().iterator();
while (descriptionIterator.hasNext()) {
TopicDescription desc = (TopicDescription) descriptionIterator.next();
// Put a flattened key in the hashMap
test.put(articleIndex.getCategoryTitle() + "||" +
topic.getTopicTitle() + "||" +
desc.getDescription(), null);
}
}
}