apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/util/KeyValueUtils.java/KeyValueUtils/filterWithKeyIgnoreCaseEndsWith
class KeyValueUtils:    public static Map<String, String> filterWithKeyIgnoreCaseEndsWith(Map<String, String> keyValues, String suffix) {
        // use O(n) algorithm
        Map<String, String> map = new HashMap<>();
        for(Map.Entry<String, String> entry : keyValues.entrySet()) {
            String key = entry.getKey();
            String value = entry.getValue();
            // let key and suffix both to upper,
            // so the suffix match doesn't care about the character is upper or lower
            if(key.toUpperCase().endsWith(suffix.toUpperCase())) {
                map.put(key, value);
            }
        }
        return map;
    }