code: public static boolean isFetched(final Object entity) {
          return entity == null || !isProxy(entity) || asProxy(entity).__isFetched();
      }
docs: Checks if the proxied entity has been fetched.
  
  @param entity the entity to check
  @return true if the proxy has been fetched.