protected void initInThread() {
        logger.fine("NullContext created.");
        if (logger.isLoggable(Level.FINE)) {
            logger.log(Level.FINE, "Running on thread: {0}", Thread.currentThread().getName());
        }

        Thread.setDefaultUncaughtExceptionHandler(
            new Thread.UncaughtExceptionHandler() {
                @Override
                public void uncaughtException(Thread thread, Throwable thrown) {
                    listener.handleError("Uncaught exception thrown in " + thread.toString(), thrown);
                }
            }
        );

        timer = new NanoTimer();
        renderer = new NullRenderer();
        synchronized (createdLock) {
            created.set(true);
            createdLock.notifyAll();
        }

        listener.initialize();
    }
Accesses the listener that receives events related to this context.

@return the pre-existing instance
jme3-core/src/main/java/com/jme3/system/NullContext.java