@Override
  public void setHasOldValue(final boolean value) {
    hasOldValue = value;
  }
sets the instance variable hasOldValue to the giving boolean value.
geode-core/src/main/java/org/apache/geode/internal/cache/tx/RemotePutMessage.java