code: public synchronized int getPoolGroupMaximum(String poolGroupName,
                                                ResourceType type) {
      Integer max = (typePoolGroupNameToMax == null) ? null :
          typePoolGroupNameToMax.get(type, poolGroupName);
      return max == null ? Integer.MAX_VALUE : max;
    }
docs: Get the configured maximum allocation for a given {@link ResourceType}
  in a given pool group
  @param poolGroupName the name of the pool group
  @param type the type of the resource
  @return the maximum allocation for the resource in a pool group