code: public <T> T getWorkContext(Class<T> workContextClass)
     {
        T instance = null;
  
        if (workContexts != null && workContexts.containsKey(workContextClass))
        {
           instance = workContextClass.cast(workContexts.get(workContextClass));
        }
  
        return instance;
     }
docs: Returns work context instance.
  
  @param <T> class type info
  @param workContextClass work context type
  @return work context instance