BranchingReaderSource input = InputSourceFactory.constructDocumentSource
(cfg, bs, null, systemId, src, r, autoCloseInput);
try {
ValidatingStreamReader sr = ValidatingStreamReader.createValidatingStreamReader
(input, this, cfg, bs, forER);
return sr;
} catch (IOException ie) {
throw new WstxIOException(ie);
}