public static ValueWrapper getWrappedValue(byte[] value, int flags) {
    return new ValueWrapper(value, versionGenerator.incrementAndGet(), flags);
  }
This method should be used to obtain instances of ValueWrapper.

@param value the value to be wrapped
@param flags the flags sent by the client
@return an instance of ValueWrapper that includes a version along with the given value.
geode-memcached/src/main/java/org/apache/geode/internal/memcached/ValueWrapper.java