public static void dump( String indent, Node n ) {
        System.out.println(indent + objectToString(n));
        dumpSpatialProperties(indent + "  ", n);
        if( !n.getChildren().isEmpty() ) {
            System.out.println(indent + "  children:");
            for( Spatial s : n.getChildren() ) {
                dump(indent + "    ", s);
            }
        }
    }
Debug dump to check structure and identity
jme3-examples/src/main/java/jme3test/app/TestCloneSpatial.java