code: public synchronized int getPoolMaximum(PoolInfo poolInfo, ResourceType type) {
      Integer max = (typePoolInfoToMax == null) ? null :
          typePoolInfoToMax.get(type, poolInfo);
      return max == null ? Integer.MAX_VALUE : max;
    }
docs: Get the configured maximum allocation for a given {@link ResourceType}
  in a given pool
  @param poolInfo Pool info to check
  @param type the type of the resource
  @return the maximum allocation for the resource in a pool