public static Spatial optimize(Node scene) {
        return optimize(scene, false);
    }
Optimizes a scene by combining Geometry with the same material.
All Geometries found in the scene are detached from their parent and
a new Node containing the optimized Geometries is attached.
@param scene The scene to optimize
@return The newly created optimized geometries attached to a node
jme3-core/src/tools/java/jme3tools/optimize/GeometryBatchFactory.java