public boolean containsValueForKeyRemotely(InternalDistributedMember targetNode, Integer bucketId,
      Object key) throws PrimaryBucketException, ForceReattemptException {
    if (logger.isDebugEnabled()) {
      logger.debug("containsValueForKeyRemotely: key={}", key);
    }
    ContainsKeyValueResponse r =
        ContainsKeyValueMessage.send(targetNode, this, key, bucketId, true);
    prStats.incPartitionMessagesSent();
    return r.waitForContainsResult();
  }
Checks if this instance contains a value for the key 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 there is non-null value for the given key
@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