docs: private static Map<String, String> readSyntaxMap(File syntaxMapFile) 
          throws IOException {
          
          Map<String, String> result = new HashMap<String, String>();
  
          BufferedReader reader = null;
          try {
              reader = new BufferedReader(new FileReader(syntaxMapFile));
              String line;
              while ((line = reader.readLine()) != null) {
                  String trimmed = line.trim();
                  if (trimmed.length() > 0) {
                      if (trimmed.charAt(0) != '#') {
                          String[] parts = trimmed.split(",");
                          if (parts.length != 2) {
                              throw new IOException(String.format("Failed to parse line \"%1$s\"",
                                      trimmed));
                          }
                          String partOne = parts[0].trim();
                          String partTwo = parts[1].trim();
                          if (partOne.length() == 0 || partTwo.length() == 0) {
                              throw new IOException(String.format("Failed to parse line \"%1$s\"",
                                      trimmed));
                          }
                          result.put(partOne, partTwo);
                      }
                  }
              }
          } finally {
              if (reader != null) {
                  reader.close();
              }
          }
  
          return result;
      }