public Map<String, String> asMap(final boolean normaliseKeys) {
        final Function<Entry<CIString, String>, String> keyMapper = normaliseKeys
                ? entry -> entry.getKey().lowerKey
                : entry -> entry.getKey().key;

        return map.entrySet()
                .stream()
                .collect(Collectors.toMap(keyMapper, Entry::getValue));
    }
@param normaliseKeys If true, all keys will be converted to lower case, else
                     will be left in their original case.
stroom-meta/stroom-meta-api/src/main/java/stroom/meta/api/CIStringHashMap.java