code: public synchronized double getWeight(PoolInfo poolInfo) {
      Double weight = (poolInfoToWeight == null) ? null :
          poolInfoToWeight.get(poolInfo);
      return weight == null ? 1.0 : weight;
    }
docs: Get the weight for the pool
  @param poolInfo Pool info to check
  @return the weight for the pool