}
// response.addHeader( "pragma", "no-cache" );
// response.addHeader( "Cache-Control", "no-cache" );
final Serializer serializer = broker.getSerializer();
serializer.reset();
final SerializerPool serializerPool = SerializerPool.getInstance();
final SAXSerializer sax = (SAXSerializer) serializerPool.borrowObject(SAXSerializer.class);
try {
sax.setOutput(output, outputProperties);
serializer.setProperties(outputProperties);
serializer.setSAXHandlers(sax, sax);
serializer.toSAX(resultSequence, 1, resultSequence.getItemCount(), false, false);
} catch (final SAXException e) {
throw new IOException(e);
} finally {
serializerPool.returnObject(sax);