code: public TypeDefinitionRegistry parse(Reader reader) throws SchemaProblem {
          try (Reader input = reader) {
              return parseImpl(input);
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: Parse a reader of schema definitions and create a {@link TypeDefinitionRegistry}
  
  @param reader the reader to parse
  
  @return registry of type definitions
  
  @throws SchemaProblem if there are problems compiling the schema definitions