@Override public JCGLInterfaceGLES2 makeNewGL() throws JCGLException, ConstraintError, JCGLUnsupportedException { final JCGLImplementation gi = JOGLTestDisplay.makeContextWithOpenGL_ES2(); final Option<JCGLInterfaceGLES2> go = gi.getGLES2(); if (go.isSome()) { final Some<JCGLInterfaceGLES2> gs = (Option.Some<JCGLInterfaceGLES2>) go; return gs.value; } throw new UnreachableCodeException(); }