public static Map<String, String> convertDirectedListToMap(final Collection<String> inputList) {
        val mappings = new TreeMap<String, String>();
        inputList
            .stream()
            .map(s -> {
                val bits = Splitter.on("->").splitToList(s);
                return Pair.of(bits.getFirst(), bits.size() > 1 ? bits.get(1) : StringUtils.EMPTY);
            })
            .forEach(p -> mappings.put(p.getKey(), p.getValue()));
        return mappings;
    }
Convert directed list to map.

@param inputList the input list
@return the map
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CollectionUtils.java