code: public static Map<String, String> convertDirectedListToMap(final List<String> inputList) {
          val mappings = new TreeMap<String, String>();
          inputList
              .stream()
              .map(s -> {
                  val bits = Splitter.on("->").splitToList(s);
                  return Pair.of(bits.get(0), bits.get(1));
              })
              .forEach(p -> mappings.put(p.getKey(), p.getValue()));
          return mappings;
      }
docs: Convert directed list to map.
  
  @param inputList the input list
  @return the map