code: public void initResourceTypeToMaxCpuMap(Map<Integer, Map<ResourceType,
                                            Integer>> cpuToResourcePartitioning) {
      resourceTypeToMaxCpu =
        getResourceTypeToCountMap((int) clusterNodeInfo.total.numCpus,
          cpuToResourcePartitioning);
    }
docs: This method is used to initialize the resource type to max CPU mapping
  based upon the cpuToResourcePartitioning instance given
  @param cpuToResourcePartitioning Mapping of cpus to resources to be used