Yes. Have your node subclass AbstractNode. Have your Children object subclass Children.Keys. As needed, call setKeys() on the Children object.

One caveat: Do not ever try to add/remove children from a node you did not create (unless it has an API that explicitly gives you permission to do that); occasionally people try to add child nodes to nodes for things like java files. If it works at all it's by accident.

Source: NetBeans FAQ