DefaultMutableTreeNode rootNode = (DefaultMutableTreeNode) stampTree.getModel().getRoot();
JMenu top = new JMenu(stampTree.getTreeName());
parents.put(rootNode, top);
Enumeration e = rootNode.preorderEnumeration();
if (e != null) {
e.nextElement(); // consume root
while (e.hasMoreElements()) {
parseChildren((StampTreeNode) e.nextElement(), cmp, handler);