code: public XExtension parse(URI uri) throws IOException, ParserConfigurationException, SAXException {
  		BufferedInputStream is = new BufferedInputStream(uri.toURL().openStream());
  		// set up a specialized SAX2 handler to fill the container
  		XExtensionHandler handler = new XExtensionHandler();
  		// set up SAX parser and parse provided log file into the container
  		SAXParserFactory parserFactory = SAXParserFactory.newInstance();
  		SAXParser parser = parserFactory.newSAXParser();
  		parser.parse(is, handler);
  		is.close();
  		return handler.getExtension();
  	}
docs: Parses an extension from a URI.
  
  @param file The URI which represents the extension definition file.
  @return The extension object, as defined in the file referenced by
  the given URI.