public static OSMHighwayType fromString(String name) {
    if (name != null) {
      for (OSMHighwayType h : OSMHighwayType.values()) {
        if (name.equalsIgnoreCase(h.name)) {
          return h;
        }
      }
    }
    return null;
    //throw new IllegalArgumentException("No constant with name " + name + " found");
  }