public void addSchema(NamedReader reader) {
        try {
            var parsedName = mediator.addSchemaFromReader(reader);
            addRankProfileFiles(parsedName);
        } catch (ParseException e) {
            throw new IllegalArgumentException("Could not parse schema file '" + reader.getName() + "'", e);
        }
    }
Reads and parses the schema string provided by the given reader. Once all schemas have been
imported, call {@link #build}.

@param reader the reader whose content to import
config-model/src/main/java/com/yahoo/schema/ApplicationBuilder.java