private static String encodeRules(Map<String, List<Rule>> rules) {
        return ProxyUtil.convertToString(rules);
    }
Key is updated time from the metadata. Value is decoded map (folder path, list of rules).
server/src/main/java/com/epam/aidial/core/server/service/RuleService.java