protected ContextAttribs createContextAttribs() {
        int vers[] = getGLVersion(settings.getRenderer());
        if (settings.isGraphicsDebug() || (vers != null && vers[0] != 2)) {
            ContextAttribs attr;
            if (vers != null && vers[0] != 2) {
                attr = new ContextAttribs(vers[0], vers[1]);
                attr = attr.withProfileCore(true).withForwardCompatible(true).withProfileCompatibility(false);
            } else {
                attr = new ContextAttribs();
            }
            if (settings.isGraphicsDebug()) {
                attr = attr.withDebug(true);
            }
            return attr;
        } else {
            return null;
        }
    }
Accesses the listener that receives events related to this context.

@return the pre-existing instance
jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglContext.java