OMNode omNode = (OMNode)it.next();
// TODO Using serialize and consume
// caused an axiom bug...falling back to serialize
// (which is less performant due to om caching)
//omNode.serializeAndConsume(writer);
omNode.serialize(writer);
}
// Close the reader if marked to do so
if (closeReader) {
if (log.isDebugEnabled()) {
log.debug("closing reader, builder: " + JavaUtils.stackToString());