#vulnerable code 
                              public static Map<String, String> readService(String path) throws IOException {
    InputStreamReader fr = new InputStreamReader(FileUtil.class.getResourceAsStream(path));
    BufferedReader br = new BufferedReader(fr);
    String line = "";
    Map<String, String> result = new HashMap<String, String>();
    while ((line = br.readLine()) != null) {
      String sl = line.trim();
      if ((sl.startsWith("//")) || sl.startsWith("#") || sl.equals("")) {
        continue;
      }
      String[] kv = sl.split("=");
      if (kv == null || kv.length != 2) {
        close(br, fr);
        throw new RuntimeException("Illegal flow config:" + path + ", sl");
      }
      result.put(kv[0].trim(), kv[1].trim());
    }
    close(br, fr);
    return result;
  } 
                            #location 19 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              public static Map<String, String> readService(String path) throws IOException {
    InputStreamReader fr = new InputStreamReader(FileUtil.class.getResourceAsStream(path),Constant.ENCODING_UTF_8);
    BufferedReader br = new BufferedReader(fr);
    String line;
    Map<String, String> result = new HashMap<String, String>();
    while ((line = br.readLine()) != null) {
      String sl = line.trim();
      if ((sl.startsWith("//")) || sl.startsWith("#") || sl.equals("")) {
        continue;
      }
      String[] kv = sl.split("=");
      if (kv == null || kv.length != 2) {
        close(br, fr);
        throw new RuntimeException("Illegal flow config:" + path + ", sl");
      }
      result.put(kv[0].trim(), kv[1].trim());
    }
    close(br, fr);
    return result;
  }