code: public synchronized String getPoolName(JobInProgress job) {
      String name = getExplicitPoolName(job).trim();
      String redirect = poolRedirectMap.get(name);
  
      if (redirect == null) {
        return name;
      } else {
        return redirect;
      }
    }
docs: Get the pool name for a JobInProgress from its configuration. This uses
  the "project" property in the jobconf by default, or the property set with
  "mapred.fairscheduler.poolnameproperty".