Pair<String, String> parseFieldAndValue(String line) {
        String field=null;
        String value;
        StringBuilder sb = new StringBuilder();
        boolean inMapKey = false;
        for (char c : line.toCharArray()) {
            if (c=='{') inMapKey=true;
            if (c=='}') inMapKey=false;
            if (c==' ' && !inMapKey) {
                if (field==null) {
                    field = sb.toString();
                    sb = new StringBuilder();
                    continue;
                }
            }
            sb.append(c);
        }
        value = sb.toString();
        return new Pair<>(field, value);
    }
Deserializes a config payload to slime

@param lines a list with config payload strings
@return an instance of the config class
config/src/main/java/com/yahoo/config/subscription/CfgConfigPayloadBuilder.java