serializer.setReceiver(receiver);
if (inputNode != null){
serializer.toSAX((NodeValue)inputNode);
} else {
final SAXToReceiver saxreceiver = new SAXToReceiver(receiver);
final XMLReader reader = pool.getParserPool().borrowXMLReader();
reader.setContentHandler(saxreceiver);
//Handle gziped input stream
InputStream stream;