public static CompletableFuture<Value> getValue(ObjectReference ref, Field field) {
    if (ref instanceof ObjectReferenceImpl && isAsyncEnabled()) {
      return reschedule(((ObjectReferenceImpl)ref).getValueAsync(field));
    }
    return completedFuture(ref.getValue(field));
  }
public static CompletableFuture<Value> getValue(ObjectReference ref, Field field)