}
private RtePlugin buildFindReplacePlugin(RichTextEditor rteAnnotation) {
if (rteAnnotation.findreplace().length > 0) {
FindReplace findReplaceAnnotation = rteAnnotation.findreplace()[0];
List<String> features = new ArrayList<String>();
if (findReplaceAnnotation.find()) {
features.add("find");
}
if (findReplaceAnnotation.replace()) {
features.add("replace");
}
RtePluginParameters widgetParameters = new RtePluginParameters();
widgetParameters.setFieldName("findreplace");
widgetParameters.setFeatures(convertFeatures(features));