buf.append(", Child[" + i + "]: \n" + children[i] + "\n");
buf.append(", Child[" + i + "]: \n" + children[i].getName() + "\n");
  public String toString() {    StringBuffer buf = new StringBuffer();    buf.append(this.getClass().toString() + ": ");    buf.append("Name: " + getName());    buf.append(", Type: " + getType());    buf.append(", Class: " + getClassName());    buf.append(", Priority: " + getPriority());    if (owner != null) {      buf.append(", Owner: " + getOwner());    }    buf.append(", LeafCount: " + leafCount());    buf.append(", ChildCount: " + childCount());    ComponentData[] children = getChildren();    for (int i = 0; i < childCount(); i++) {      buf.append(", Child[" + i + "]: \n" + children[i] + "\n");    }    return buf.toString();  }