docs: public static Class getReferentClass(final Object entity) {
          if (isProxy(entity)) {
              return asProxy(entity).__getReferenceObjClass();
          } else {
              return entity != null ? entity.getClass() : null;
          }
      }