private RenderState.BlendMode convertBlend(BlendMode blendMode) {
        if (blendMode == null) {
            return RenderState.BlendMode.Off;
        } else
            switch (blendMode) {
                case BLEND:
                    return RenderState.BlendMode.Alpha;
                case MULIPLY:
                    return RenderState.BlendMode.Alpha;
                default:
                    throw new UnsupportedOperationException();
        }
    }
Instantiates a new RenderDevice using the specified ColorSpace for Nifty
colors.

@param display the SceneProcessor to render Nifty (not null, alias created)
@param colorSpace the ColorSpace to use for Nifty colors (sRGB or Linear)
jme3-niftygui/src/main/java/com/jme3/niftygui/RenderDeviceJme.java