code: private static String getValue(Map<String, String> map, String keyName) {
      String value = map.get(keyName);
      return value == null ? "-" : value;
    }
docs: Retrieve value from the map corresponding to the given key.