class VarPoolUtils {

    public static void convertVarPoolToMap(Map<String, Object> propToValue, String varPool) throws ParseException {
        if (varPool == null || propToValue == null) {
            return;
        }
        String[] splits = varPool.split("\\$VarPool\\$");
        for (String kv : splits) {
            String[] kvs = kv.split(",");
            if (kvs.length == 2) {
                propToValue.put(kvs[0], kvs[1]);
            } else {
                throw new ParseException(kv, 2);
            }
        }
    }

}