@Override
    public void beginBatch(final BlendMode blendMode, final int textureId) {
        batches.add(batchPool.allocate());
        currentBatch = batches.get(batches.size() - 1);
        currentBatch.begin(blendMode, getTextureAtlas(textureId));
    }
Nifty GUI BatchRenderBackend Implementation for jMonkeyEngine.

@author void
jme3-niftygui/src/main/java/com/jme3/niftygui/JmeBatchRenderBackend.java