I cheated a bit, firstly I tell OGB that any node it will build should be a DefaultMutableTreeNode, no matter what name you choose the resulting object would be an instance of that class. Secondly I modify the default behavior for setting a child node into a parent node, as DefaultMutableTreeNode does not have a 'setNode()' method (or setXyz() if I choose that as node name). Once the model is created it is assigned to a JXTree giving the following result

Keep on Groovying!