/** Make the current parent's parent the new parent. */
 public void enterParent() {
   if (currentParent.getParent() != null) {
     currentParent = currentParent.getParent();
   }
   currentChild = currentParent.getChild();
 }
 public boolean isRoot() {
   return (currentParent.getParent() == null);
 }