public static void putInputJobInfoToConf(InputJobInfo inputJobInfo, Configuration conf)
   throws IOException {

    LinkedList<InputJobInfo> inputJobInfos = (LinkedList<InputJobInfo>) HCatUtil.deserialize(
            conf.get(HCatConstants.HCAT_KEY_JOB_INFO));

    if (inputJobInfos == null) {
      inputJobInfos = new LinkedList<>();
    }
    inputJobInfos.add(inputJobInfo);
    conf.set(HCatConstants.HCAT_KEY_JOB_INFO, HCatUtil.serialize(inputJobInfos));
  }
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