public <T extends PipelineContext> T getContext(Class<T> type) {
        return (T)contexts.get(type);
    }
Gets the pipeline context registered under the class.

@param <T>
@param type
@return registered context or null
jme3-core/src/main/java/com/jme3/renderer/RenderManager.java