code: public synchronized ScheduleComparator getPoolComparator(PoolInfo poolInfo) {
      ScheduleComparator comparator =
          (poolInfoToComparator == null) ? null :
              poolInfoToComparator.get(poolInfo);
      return comparator == null ? defaultPoolComparator : comparator;
    }
docs: Get the comparator to use for scheduling sessions within a pool
  @param poolInfo Pool info to check
  @return the scheduling comparator to use for the pool