@Override
    public void setMaterial(Material material) {
        throw new UnsupportedOperationException("Unsupported for now, please set the material on the geoms before batching");
    }
Sets the material to the all the batches of this BatchNode.
Use setMaterial(Material material,int batchIndex) to set a material to a specific batch.

@param material the material to use for this geometry
jme3-core/src/main/java/com/jme3/scene/BatchNode.java