}
sax.endDocument();
writer.close();
} catch(SAXException saxe) {
throw new HttpClientException("A problem occurred while serializing the node set: " + saxe.getMessage(), saxe);
} catch(IOException ioe) {
throw new HttpClientException("A problem occurred while serializing the node set: " + ioe.getMessage(), ioe);
} catch(XPathException xpe) {
throw new HttpClientException("A problem occurred while serializing the node set: " + xpe.getMessage(), xpe);
} finally {
SerializerPool.getInstance().returnObject(sax);
}
}