code: @SuppressWarnings("unchecked")
      public static <T> T unwrap(final T entity) {
          if (isProxy(entity)) {
              return (T) asProxy(entity).__unwrap();
          }
          return entity;
      }
docs: If proxied, returns the unwrapped entity.
  
  @param entity the entity to check
  @param <T>    the type of the entity
  @return the bare entity