if (forEventReader) {
/* No point in lazy parsing for event readers: no more efficient
* (and possible less) since all data is needed, always; and
* exceptions also get lazily thrown after the fact.
*/
cfg.doParseLazily(false);
}
if (forceAutoClose) {
cfg.doAutoCloseInput(true);
}
return cfg;