public < T > T getWorkContext ( Class < T > workContextClass ) { T instance = null ; if ( workContexts != null && workContexts . containsKey ( workContextClass ) ) { instance = workContextClass . cast ( workContexts . get ( workContextClass ) ) ; } return instance ; }
Returns work context instance .