Iterator iter = set.iterator();
subjectList = new Hashtable();
while (iter.hasNext()) {
IEntry entry = (IEntry) iter.next();
String subject = entry.getSubject().getUri();
String uri = entry.getUri();
TreeSet subjectSet = (TreeSet) subjectList.get(subject);
if (subjectSet == null) {
subjectSet = new TreeSet();
subjectList.put(subject, subjectSet);
}
subjectSet.add(new Topic(uri, entry.getTitle()));
}
}