code: protected static void dumpHierarchy (Component comp)
      {
          for (String indent = ""; comp != null; indent += " ") {
              log.info(indent + toString(comp));
              comp = comp.getParent();
          }
      }
docs: Dumps the containment hierarchy for the supplied component.