public int assignFixedBucketId(Region region, String partition, Object resolveKey) {
    if (fixedPAMap.containsKey(partition)) {
      List<Integer> attList = fixedPAMap.get(partition);
      int hc = resolveKey.hashCode();
      int bucketId = Math.abs(hc % (attList.get(0)));
      int partitionBucketID = bucketId + attList.get(1);
      return partitionBucketID;
    } else {
      // We don't know as we might not have got the all FPAttributes
      // from the FPR, So don't throw the exception but send the request
      // to the server and update the FPA attributes
      // This exception should be thrown from the server as we will
      // not be sure of partition not available unless we contact the server.
      return -1;
    }
  }
Returns the PartitionResolver set for custom partitioning

@return <code>PartitionResolver</code> for the PartitionedRegion
geode-core/src/main/java/org/apache/geode/cache/client/internal/ClientPartitionAdvisor.java