code: public static Class<?> getRealClass(Class<?> clazz) {
          Class<?> realClazz = clazz;
          if (isWeldProxy(clazz)) {
              realClazz = clazz.getSuperclass();
          }
          return realClazz;
      }
docs: Get the real class. If it is proxy, get its superclass, which will be the real class.
  
  @param clazz
  @return the real class.