code: private PoolSchedulable getPoolSchedulable(PoolInfo poolInfo) {
      PoolGroupSchedulable poolGroup =
          nameToPoolGroup.get(poolInfo.getPoolGroupName());
      if (poolGroup == null) {
        poolGroup = new PoolGroupSchedulable(
            poolInfo.getPoolGroupName(), type, configManager);
        PoolGroupSchedulable prevPoolGroup =
            nameToPoolGroup.putIfAbsent(poolInfo.getPoolGroupName(), poolGroup);
        if (prevPoolGroup != null) {
          poolGroup = prevPoolGroup;
        }
      }
  
      return poolGroup.getPool(poolInfo);
    }
docs: Get the Schedulable representing the pool with a given name
  If it doesn't exist - create it and add it to the list
  
  @param poolInfo Group and pool names
  @return the PoolSchedulable for a pool with a given name