public boolean replace(int key, V oldValue, V newValue) {
    if (oldValue == null || newValue == null) {
      throw new NullPointerException();
    }
    int hash = hash(key);
    return segmentFor(hash).replace(key, hash, oldValue, newValue);
  }
@throws NullPointerException if any of the arguments are null
geode-core/src/main/java/org/apache/geode/internal/ObjIdConcurrentMap.java