public TypeDefinitionRegistry parse(File file) throws SchemaProblem {
        try {
            return parse(Files.newBufferedReader(file.toPath(), defaultCharset()));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
public TypeDefinitionRegistry parse ( File file ) throws SchemaProblem { try { return parse ( Files . newBufferedReader ( file . toPath ( ) , defaultCharset ( ) ) ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
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