TupleQueryResultWriterFactory factory = ProtocolUtil.getAcceptableService(request, response,
TupleQueryResultWriterRegistry.getInstance());
Map<String, Object> model = new HashMap<String, Object>();
model.put(QueryResultView.QUERY_RESULT_KEY, new TupleQueryResultImpl(bindingNames, bindingSets));
model.put(QueryResultView.FILENAME_HINT_KEY, "repositories");
model.put(QueryResultView.FACTORY_KEY, factory);
return new ModelAndView(TupleQueryResultView.getInstance(), model);
}