public final boolean isBatch(Spatial s) {
        for (Batch batch : batches.getArray()) {
            if (batch.geometry == s) {
                return true;
            }
        }
        return false;
    }
recursively visit the subgraph and unbatch geometries

@param s
jme3-core/src/main/java/com/jme3/scene/BatchNode.java