code: @SuppressWarnings("unchecked")
      public E unproxy(E e) {
          if (e == null) {
              throw new NullPointerException("Entity passed for initialization is null");
          }
  
          Hibernate.initialize(e);
  
          if (e instanceof HibernateProxy) {
              e = (E) ((HibernateProxy) e).getHibernateLazyInitializer().getImplementation();
          }
  
          return e;
      }
docs: Unproxy the entity (and eagerly fetch properties).