* @param msgBroker message broker
* @param writer underlying writer
* @param record record to write
*/
private void printPjson(MessageBroker msgBroker, PrintWriter writer, final SearchResultRecord record, Format format) {
SearchResultRecords records = new SearchResultRecords();
records.add(record);
JsonFeedWriter jsonWriter = new JsonFeedWriter(writer, null, format == Format.pjson );
jsonWriter.setMessageBroker(msgBroker);
jsonWriter.write(new SearchResultRecordsAdapter(records));
}