public RuleBase privateImportFile(String fileName, String automataFile) throws IOException, ParseException {
        BufferedReader reader = null;
        try {
            reader = IOUtils.createReader(fileName, "utf-8");
            File file = new File(fileName);
            String absoluteFileName = file.getAbsolutePath();
            var ruleBase = new RuleBase(stripLastName(file.getName()));
            privateImportFromReader(reader, absoluteFileName, automataFile, ruleBase);
            return ruleBase;
        }
        finally {
            IOUtils.closeReader(reader);
        }
    }
Imports semantic rules from a file

@param fileName the rule file to use
@param automataFile the automata file to use, or null to not use any
@throws java.io.IOException if the file can not be read for some reason
@throws ParseException if the file does not contain a valid semantic rule set
container-search/src/main/java/com/yahoo/prelude/semantics/RuleImporter.java