private static String shortenPath(String path) {
        int rulesIndex = path.indexOf("rules/");
        if (rulesIndex < 0) return path;
        return path.substring(rulesIndex);
    }
Snips what's in front of rules/ if "rules/" is present in the string
to avoid displaying details about where application content is copied
(if rules/ is present, these rules are read from an application package)
container-search/src/main/java/com/yahoo/prelude/semantics/RuleImporter.java