if (cache != null) {
//newdom = cache.retrieveDocument(originalUri, mask, translet);
newdom = cache.retrieveDocument(uri, mask, translet);
if (newdom == null) {
final Exception e = new FileNotFoundException(originalUri);
throw new TransletException(e);
}
} 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();
final SAXParser parser = factory.newSAXParser();
final XMLReader reader = parser.getXMLReader();
try {
reader.setFeature(NAMESPACE_FEATURE,true);
}
catch (Exception e) {
throw new TransletException(e);
}
// Set the DOM's DOM builder as the XMLReader's SAX2 content handler
XSLTCDTMManager dtmManager = (XSLTCDTMManager)
((DTMDefaultBase)((DOMAdapter)multiplexer.getMain())