code: public ArrayList<JTSFeature> parse(String xml, DescribeService service,
  			LocalFilter filter) {
  		simpleContentHandler.setJPEParseContentHandler(contentHandler);
  		simpleContentHandler.setJPEWriteContentHandler(writerHandler);
  		simpleContentHandler.setDescribeService(service);
  		simpleContentHandler.setLocalFilter(filter);
  
  		try {
  			XMLReader parser = org.xml.sax.helpers.XMLReaderFactory
  					.createXMLReader();
  
  			parser.setContentHandler(simpleContentHandler);
  			ByteArrayInputStream bi = new ByteArrayInputStream(
  					xml.getBytes(service.getEncoding()));
  			InputSource in = new InputSource();
  			in.setByteStream(bi);
  			in.setEncoding(service.getEncoding());
  			parser.parse(in);
  		} catch (SAXException e) {
  			// TODO Auto-generated catch block
  			e.printStackTrace();
  			return null;
  		} catch (IOException e) {
  			// TODO Auto-generated catch block
  			e.printStackTrace();
  			return null;
  		}
  
  		return simpleContentHandler.getResult();
  	}
docs: {@inheritDoc}