I\'m trying to perform a map operation on each entry in a Map object.
I need to take a prefix off the key and convert the value from one type to another
Simply translating the "old for loop way" into streams:
private Map mapConfig(Map input, String prefix) {
int subLength = prefix.length();
return input.entrySet().stream()
.collect(Collectors.toMap(
entry -> entry.getKey().substring(subLength),
entry -> AttributeType.GetByName(entry.getValue())));
}