code: public Grammars createGrammars(String xsdLocation,
  			XMLEntityResolver entityResolver) throws EXIException {
  		if (xsdLocation == null || xsdLocation.equals("")) {
  			throw new EXIException("SchemaLocation not specified correctly!");
  		} else {
  			// System.out.println("Grammar for: " + xsdLocation);
  			grammarBuilder.loadGrammars(xsdLocation, entityResolver);
  			SchemaInformedGrammars g = grammarBuilder.toGrammars();
  			g.setSchemaId(xsdLocation);
  			return g;
  		}
  	}
docs: Schema information is generated for processing the EXI body.
  
  @param xsdLocation
  file location
  @param entityResolver
  application can register XSD resolver
  @return schema-informed EXI grammars
  @throws EXIException
  EXI exception