public <T extends PipelineContext> void registerContext(Class<T> type, T context) {
        assert type != null;
        if (context == null) {
            throw new NullPointerException("Context to register cannot be null.");
        }
        contexts.put(type, context);
    }
Registers the pipeline context under the class.
<p>
If another context is already registered under the class, that
context will be replaced by the given context.

@param <T>
@param type class type to register the context under (not null)
@param context context to register (not null)
jme3-core/src/main/java/com/jme3/renderer/RenderManager.java