public static InputJobInfo getLastInputJobInfosFromConf(Configuration conf)
          throws IOException {
    LinkedList<InputJobInfo> inputJobInfos = getInputJobInfosFromConf(conf);
    if (inputJobInfos == null || inputJobInfos.isEmpty()) {
      return null;
    } else {
      return getInputJobInfosFromConf(conf).getLast();
    }
  }
Used by various tests to make sure the path is safe for Windows
hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java