@SuppressWarnings("unchecked")
public void render(Map model, HttpServletRequest request, HttpServletResponse response)
throws IOException
{
BooleanQueryResultWriterFactory brWriterFactory = (BooleanQueryResultWriterFactory)model.get(FACTORY_KEY);
BooleanQueryResultFormat brFormat = brWriterFactory.getBooleanQueryResultFormat();
response.setStatus(SC_OK);
setContentType(response, brFormat);
setContentDisposition(model, response, brFormat);
OutputStream out = response.getOutputStream();
try {
BooleanQueryResultWriter qrWriter = brWriterFactory.getWriter(out);
boolean value = (Boolean)model.get(QUERY_RESULT_KEY);
qrWriter.write(value);
}
finally {
out.close();