public String addSchemaFromReader(NamedReader reader) {
        try {
            var nameParsed = addSchemaFromStringWithFileName(IOUtils.readAll(reader.getReader()), reader.getName());
            reader.close();
            return nameParsed;
        } catch (ParseException e) {
            throw new IllegalArgumentException("Failed parsing schema from '" + reader.getName() + "'", e);
        } catch (java.io.IOException e) {
            throw new IllegalArgumentException("Failed reading from '" + reader.getName() + "'", e);
        }
    }
Parses a schema from the given reader and add result to collection.
config-model/src/main/java/com/yahoo/schema/parser/IntermediateCollection.java