String highlightPrefix = queryMethod.getHighlightPrefix();
if (highlightPrefix != null) {
if (isSimpleHighlightingOption(formatter)) {
options.setSimplePrefix(highlightPrefix);
} else {
options.addHighlightParameter(new HighlightParameter(HighlightParams.TAG_PRE, highlightPrefix));
}
}
String highlightPostfix = queryMethod.getHighlightPostfix();
if (highlightPostfix != null) {
if (isSimpleHighlightingOption(formatter)) {
options.setSimplePostfix(highlightPostfix);
} else {
options.addHighlightParameter(new HighlightParameter(HighlightParams.TAG_POST, highlightPostfix));
}
}
}