class XmlRootNodeHandler implements RootNodeHandler {

    @Override
    public void close() throws IOException {
        try {
            xmlStreamWriter.writeEndElement();
        } catch (XMLStreamException e) {
            throw new IOException(e);
        } finally {
            try {
                xmlStreamWriter.close();
            } catch (XMLStreamException e) {
                throw new IOException(e);
            }
        }
    }

    public  XmlRootNodeHandler(OutputStream outputStream);
    public  XmlRootNodeHandler(XMLStreamWriter xmlStreamWriter, XmlBxmlNodeVisitorFactory xmlBxmlNodeVisitorFactory);

}