@Override
    public Node clone(boolean cloneMaterials) {
        BatchNode clone = (BatchNode) super.clone(cloneMaterials);
        if (batches.size() > 0) {
            for (Batch b : batches) {
                for (int i = 0; i < clone.children.size(); i++) {
                    if (clone.children.get(i).getName().equals(b.geometry.getName())) {
                        clone.children.remove(i);
                        break;
                    }
                }
            }
            clone.needsFullRebatch = true;
            clone.batches = new SafeArrayList<>(Batch.class);
            clone.batchesByGeom = new HashMap<Geometry, Batch>();
            clone.batch();
        }
        return clone;
    }
update the batchesByGeom map for this batch with the given List of geometries

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