public void storeRules(Publication publication) {
        List<Rule> rules = publication.getRules();
        if (rules != null) {
            storeRules(publication.getTargetFolder(), 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