public RuleBase importFromReader(Reader reader, String sourceName, String automataFile, RuleBase ruleBase) throws ParseException {
        ruleBase = privateImportFromReader(reader, sourceName, automataFile, ruleBase);
        ruleBase.initialize();
        return ruleBase;
    }
Imports rules from a reader

@param reader the reader containing rules on the proper syntax
@param sourceName a string describing the source of the rules used for error messages
@param ruleBase an existing rule base to import the rules into, or null to create a new one
@return the rule base containing the rules added from the reader
@throws ParseException if the reader contains illegal rule syntax
container-search/src/main/java/com/yahoo/prelude/semantics/RuleImporter.java