code: public static JobDescFactoryBase getFrameworkSpecificJobDescFactory(Configuration jobConf) {
      Framework framework = getFramework(jobConf);
  
      switch (framework) {
      case PIG:
        return PIG_JOB_DESC_FACTORY;
      case SCALDING:
        return SCALDING_JOB_DESC_FACTORY;
      default:
        return MR_JOB_DESC_FACTORY;
      }
    }
docs: get framework specific JobDescFactory based on configuration
  @param jobConf configuration of the job
  @return framework specific JobDescFactory