@Override
public Reader resolve(URI uri, String encoding, Configuration configuration) throws XPathException {
if (unparsedTextResolver == null) {
// If there's no resolver, let Saxon do it...
unparsedTextResolver = new StandardUnparsedTextResolver();
}
return unparsedTextResolver.resolve(uri, encoding, configuration);
}