SAXParserFactory saxFactory = SAXParserFactory.newInstance(); saxFactory.setNamespaceAware(true); saxFactory.setValidating(false); SAXParser sax = saxFactory.newSAXParser(); XMLReader reader = sax.getXMLReader(); reader.setProperty( "http: this); reader.setContentHandler(this);  reader.parse(is); Modification mods[] = new Modification[modifications.size()]; return (Modification[]) modifications.toArray(mods);
XMLReader reader = broker.getBrokerPool().getParserPool().borrowXMLReader(); try { reader.setProperty( "http: this); reader.setContentHandler(this);  reader.parse(is); Modification mods[] = new Modification[modifications.size()]; return (Modification[]) modifications.toArray(mods); } finally { broker.getBrokerPool().getParserPool().returnXMLReader(reader); }
	public Modification[] parse(InputSource is)		throws ParserConfigurationException, IOException, SAXException {		SAXParserFactory saxFactory = SAXParserFactory.newInstance();		saxFactory.setNamespaceAware(true);		saxFactory.setValidating(false);		SAXParser sax = saxFactory.newSAXParser();		XMLReader reader = sax.getXMLReader();		reader.setProperty(				"http://xml.org/sax/properties/lexical-handler",				this);		reader.setContentHandler(this);				reader.parse(is);		Modification mods[] = new Modification[modifications.size()];		return (Modification[]) modifications.toArray(mods);	}