protected void waitFor(boolean createdVal) {
        synchronized (createdLock) {
            while (created.get() != createdVal) {
                try {
                    createdLock.wait();
                } catch (InterruptedException ex) {
                }
            }
        }
    }
Initializes the LWJGL renderer and input.
@param first - Whether this is the first time we are initializing and we
need to create the renderer or not. Otherwise, we'll just reset the
renderer as needed.
jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglContext.java