code: public static ValidatingStreamReader createValidatingStreamReader
          (BranchingReaderSource input, ReaderCreator owner,
           ReaderConfig cfg, InputBootstrapper bs, boolean forER)
          throws XMLStreamException
      {
          ValidatingStreamReader sr = new ValidatingStreamReader
              (bs, input, owner, cfg, createElementStack(cfg), forER);
          return sr;
      }
docs: Factory method for constructing readers.
  
  @param owner "Owner" of this reader, factory that created the reader;
  needed for returning updated symbol table information after parsing.
  @param input Input source used to read the XML document.
  @param cfg Object that contains reader configuration info.
  @param bs Bootstrapper to use, for reading xml declaration etc.
  @param forER True if this reader is to be (configured to be) used by
  an event reader. Will cause some changes to default settings, as
  required by contracts Woodstox XMLEventReader implementation has
  (with respect to lazy parsing, short text segments etc)