@Override
  public boolean equals(Object obj) {
    if (obj instanceof KeyWrapper) {
      KeyWrapper other = (KeyWrapper) obj;
      return Arrays.equals(key, other.key);
    }
    return false;
  }
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