public void renderQueue(Bucket bucket, RenderManager rm, Camera cam, boolean clear) {
        rm.getRenderer().pushDebugGroup(bucket.name());
        switch (bucket) {
            case Gui:
                renderGeometryList(guiList, rm, cam, clear);
                break;
            case Opaque:
                renderGeometryList(opaqueList, rm, cam, clear);
                break;
            case Sky:
                renderGeometryList(skyList, rm, cam, clear);
                break;
            case Transparent:
                renderGeometryList(transparentList, rm, cam, clear);
                break;
            case Translucent:
                renderGeometryList(translucentList, rm, cam, clear);
                break;

            default:
                throw new UnsupportedOperationException("Unsupported bucket type: " + bucket);
        }
        rm.getRenderer().popDebugGroup();
    }
Adds a geometry to the given bucket.
The {@link RenderManager} automatically handles this task
when flattening the scene graph. The bucket to add
the geometry is determined by {@link Geometry#getQueueBucket() }.

@param g  The geometry to add
@param bucket The bucket to add to, usually 
{@link Geometry#getQueueBucket() }.
jme3-core/src/main/java/com/jme3/renderer/queue/RenderQueue.java