private static void dump( String indent, Spatial s ) {
        if( s instanceof Node ) {
            dump(indent, (Node)s);
        } else if( s instanceof Geometry ) {
            dump(indent, (Geometry)s);
        }
    }
Debug dump to check structure and identity
jme3-examples/src/main/java/jme3test/app/TestCloneSpatial.java