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));