code: public static <T> Class<T> wrap(Class<T> type) {
          if (type == null) {
              throw new IllegalArgumentException();
          }
  
          Class<T> wrapped = (Class<T>) PRIMITIVE_TO_WRAP.get(type);
          return (wrapped == null) ? type : wrapped;
      }
docs: Guava wrap alternative.
  
  @param type type
  @return wrapped result