serializer.startDocument();
DOMStreamer domStreamer = new DOMStreamer(serializer);
Element contentNode = (Element) data.getFirstChild();
domStreamer.stream(contentNode);
serializer.endDocument();
getLogger().debug("NODE IS: \n" + contentNode.toString());
selector.release(serializer);
super.manager.release(selector);
os.flush();
os.close();