code: public static Class<?> rawTypeOf(Type type) {
          if (type instanceof Class) {
              return (Class) type;
          } else if (type instanceof ParameterizedType) {
              return (Class) ((ParameterizedType) type).getRawType();
          } else {
              throw E.unexpected("type not recognized: %s", type);
          }
      }
docs: A utility method to return raw type (the class) of a given
  type.
  
  @param type
  a {@link Type}
  @return a {@link Class} of the type
  @throws org.osgl.exception.UnexpectedException
  if class cannot be determined