Bug ID: JDK-8266413 XMLEventReader must not close underlying...
JDK-6354964 - XMLReader implementation (Parser2) Should Not Close InputStream.CUSTOMER SUBMITTED WORKAROUND : Wrap input stream into custom classes to control time of calling the method close() and to catch its exceptions.