code: public static <T> T getContext(ELContext context, Class<T> key, T defaultValue) {
          @SuppressWarnings("unchecked")
          final T result = (T) context.getContext(key);
          return result == null ? defaultValue : result;
      }
docs: Casts context objects per documented convention.
  
  @param <T>
  @param context
  @param key
  @param defaultValue
  @return T