// process the documents, generate the response
AsnAssertionRenderer renderer = new AsnAssertionRenderer();
for (int i=startRecord; i<numDocs; i++) {
Document document = reader.document(scoreDocs[i].doc);
Assertion assertion = asnSet.newAssertion(context,false);
assertion.load(document);
rootProp.getChildren().add(renderer.makeProperty(context,assertion));
}
context.getOperationResponse().generateResponse(context,rootProp.getChildren());
} finally {