@Override public void flush() throws XMLStreamException { try { target.flush(); } catch (IOException e) { throw new XMLStreamException("Flush failed", e); } }