public Document readDocument(Reader reader,String systemId) throws XMLStreamException {
  XMLEventReader eventReader=inputFactory.createXMLEventReader(systemId,reader);
  try {
    return readDocument(eventReader);
  }
  finally {
    eventReader.close();
  }
}

public Document readDocument ( Reader reader , String systemId ) throws XMLStreamException { XMLEventReader eventReader = inputFactory . createXMLEventReader ( systemId , reader ) ; try { return readDocument ( eventReader ) ; } finally { eventReader . close ( ) ; } }
constructs a stax event stream from the provided i / o character stream and reads a dom4j document from it .
