code: protected XMLStreamReader createStreamReader(InputStream input) throws XMLStreamException {
          if (inputFactory == null) {
              inputFactory = XMLInputFactory.newInstance();
          }
          return inputFactory.createXMLStreamReader(input);
      }
docs: Get a new XML stream reader.
  
  @param input
  the underlying InputStream to read from.
  @return a new {@link XmlStreamReader} which reads from the specified
  InputStream. The reader can read anything written by
  {@link #createStreamWriter(OutputStream)}.
  @throws XMLStreamException