@Override
  public void toData(DataOutput out) throws IOException {
    DataSerializer.writeByteArray(key, out);
  }
This method should be used to obtain instances of KeyWrapper.

@param key the key to wrap
@return an instance of KeyWrapper that can be used as a key in Region/Map
geode-memcached/src/main/java/org/apache/geode/internal/memcached/KeyWrapper.java