You will usually implements the interface ChildrenMapManager or ChildrenListManager in order to specify the way you want to manage the children of the node you create. The manager will then receive a class implementing the corresponding interface NodeMap or NodeList.