childMap.put(childName, childKey);
}
// now, actually create the children. Grandchildren and all
// other descendents will be created recursively.
for (Iterator i = childMap.entrySet().iterator(); i.hasNext();) {
Map.Entry e = (Map.Entry) i.next();
SortableTaskName childName = (SortableTaskName) e.getKey();
TaskKey childKey = (TaskKey) e.getValue();
addChild(newNode, childKey, childName.name, allTaskKeys);
}