code: public TypeDefinitionRegistry parse(File file) throws SchemaProblem {
          try {
              return parse(Files.newBufferedReader(file.toPath(), defaultCharset()));
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: Parse a file of schema definitions and create a {@link TypeDefinitionRegistry}
  
  @param file the file to parse
  
  @return registry of type definitions
  
  @throws SchemaProblem if there are problems compiling the schema definitions