protected int addChildNode(NodeBuilder child){
synchronized (nodes) {
    nodes.add(child);
    return nodes.size() - 1;
  }
}

protected int addChildNode ( NodeBuilder child ) { synchronized ( nodes ) { nodes . add ( child ) ; return nodes . size ( ) - 1 ; } }
this method adds the supplied node builder as a child of this node builder .
