@Override
  public TreeNode<T> addChild(T child, String name) {
    TreeNodeImpl<T> node = new TreeNodeImpl<>(this, child, name);
    m_mapChildren.put(name, node);

    return node;
  }
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