* @param record record to write
*/
private void printKml(MessageBroker msgBroker, PrintWriter writer, final SearchResultRecord record) {
SearchResultRecords records = new SearchResultRecords();
records.add(record);
KmlFeedWriter kmlWriter = new KmlFeedWriter(msgBroker, writer);
kmlWriter.setKmlSignatureProvider(new KmlSignatureProvider() {
public String getTitle() {
return record.getTitle();
}
public String getDescription() {
return record.getAbstract();
}
});
kmlWriter.write(new SearchResultRecordsAdapter(records));
}