private int getArrayIndex(String name) {
        if (name.contains("[")) {
            return Integer.parseInt(name.substring(name.indexOf("[") + 1, name.indexOf("]")));
        } else {
            return 0;
        }
    }
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