code: public synchronized int getPriority(PoolInfo poolInfo) {
      Integer priority = (poolInfoToPriority == null) ? null :
          poolInfoToPriority.get(poolInfo);
      return priority == null ? 0 : priority;
    }
docs: Get the priority for the pool
  @param poolInfo Pool info to check
  @return the priority for the pool