code: public static XMLStreamException createXMLStreamException(
              final String message,
              final XMLStreamReader reader,
              final Throwable cause) {
          final XMLStreamException exception = new XMLStreamException(message, reader.getLocation(), null);
          exception.initCause(cause);
          return exception;
      }
docs: Returns new instance of <code>XMLStreamException</code> with given cause
  
  @param message
  exception message
  @param reader
  parser
  @param cause
  underlying cause
  @return <code>XMLStreamException</code> with given cause