if (mask != -1) {
return new SingletonIterator(DOM.ROOTNODE | mask, true);
}
// Check if we can get the DOM from a DOMCache
DOMCache cache = translet.getDOMCache();
DOMImpl newdom;
mask = multiplexer.nextMask(); // peek
if (cache != null) {
newdom = cache.retrieveDocument(uri, mask, translet);
}
else {
// Parse the input document and construct DOM object
// Create a SAX parser and get the XMLReader object it uses
final SAXParserFactory factory = SAXParserFactory.newInstance();