String canCreatePred = asnSet.getURNPrefix()+":activeUser:canCreate";
String canCreateVal = ""+context.getAuthorizer().canCreate(context,asnSet.getAuthPolicy());
rootProp.getChildren().add(new AsnProperty(null,canCreatePred,canCreateVal));
// 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 {
this.getIndexAdapter().closeReader(reader);