code: private void setTree(ComponentTree tree) {
          synchronized (this) {
              this.tree = tree;
              for (ComponentVertex child : children) {
                  child.setTree(tree);
              }
          }
      }
docs: Set the reference to the common properties of this component
  and all its children to the given value.
  
  @param comp the new root