* @throws SearchException if extracting document failed
*/
private void printHtmlFragment(MessageBroker msgBroker,
PrintWriter writer,
SearchResultRecord record) throws SearchException {
RecordSnippetWriter snippetWriter = new RecordSnippetWriter(msgBroker, writer);
snippetWriter.setShowTitle(true);
snippetWriter.setShowIcon(true);
snippetWriter.setClipText(true);
snippetWriter.write(new SearchResultRecordAdapter(record));
}