code: public synchronized XMLInputFactory getXMLInputFactory() {
  		XMLInputFactory inputFactory = (XMLInputFactory) factoryRef.get();
  		if (inputFactory == null) {
  			inputFactory = createInputFactory();
  			factoryRef = new SoftReference(inputFactory);
  		}
  		return inputFactory;
  	}
docs: Returns a (potentially cached) factory instance.