final int start, final boolean typed, final Properties outputProperties,
final boolean wrap) throws BadRequestException {
// serialize the results to the response output stream
final Serializer serializer = broker.getSerializer();
serializer.reset();
outputProperties.setProperty(Serializer.GENERATE_DOC_EVENTS, "false");
SAXSerializer sax = null;
try {
sax = (SAXSerializer) SerializerPool.getInstance().borrowObject(
SAXSerializer.class);