public static void generate(Spatial s){
        if(s instanceof Node){
            Node n = (Node)s;
            for (Spatial child : n.getChildren()) {
                generate(child);
            }

        } else if (s instanceof Geometry) {
            Geometry g = (Geometry) s;
            Mesh mesh = g.getMesh();
            boolean success = generateTangents(mesh);
            if (!success) {
                logger.log(Level.SEVERE, "Failed to generate tangents for geometry {0}", g.getName());
            }
        }
    }
A private constructor to inhibit instantiation of this class.
jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java