public JobType matchJobType(HadoopApplicationData data) {
    if (data != null) {
      List<JobType> jobTypeList = _appTypeToJobTypes.get(data.getApplicationType());
      Properties jobProp = data.getConf();
      for (JobType type : jobTypeList) {
        if (type.matchType(jobProp)) {
          return type;
        }
      }
    }
    return null;
  }
Get the matched job type given a

@param data The HadoopApplicationData to check
@return The matched job type
app/com/linkedin/drelephant/ElephantContext.java