public boolean containsKeyRemotely(InternalDistributedMember targetNode, Integer bucketId,
      Object key) throws PrimaryBucketException, ForceReattemptException {
    ContainsKeyValueResponse r =
        ContainsKeyValueMessage.send(targetNode, this, key, bucketId, false);
    prStats.incPartitionMessagesSent();
    return r.waitForContainsResult();
  }
Checks if a key is contained remotely.

@param targetNode the node where bucket region for the key exists.
@param bucketId the bucket id for the key.
@param key the key, whose value needs to be checks
@return true if the passed key is contained remotely.
@throws PrimaryBucketException if the remote bucket was not the primary
@throws ForceReattemptException if the peer is no longer available
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java