@Override
  public TreeNode<T> addChild(TreeNode<T> child) {
    child.setParent(this);
    m_mapChildren.put(child.getName(), child);

    return child;
  }
Constructor.

@param parent parent node
@param object associated object
@param name   node name
ambari-server/src/main/java/org/apache/ambari/server/api/util/TreeNodeImpl.java