code: static Class resolveType(Type genericType, Map<Type, Type> typeVariableMap) {
      Type rawType = getRawType(genericType, typeVariableMap);
      return (rawType instanceof Class ? (Class) rawType : Object.class);
    }
docs: Resolve the specified generic type against the given TypeVariable map.
  
  @param genericType     the generic type to resolve
  @param typeVariableMap the TypeVariable Map to resolved against
  
  @return the type if it resolves to a Class, or <code>Object.class otherwise