private RtePlugin buildEditPlugin(RichTextEditor rteAnnotation) {
if (rteAnnotation.edit().length > 0) {
Edit[] editAnnotations = rteAnnotation.edit();
Edit editAnnotation = editAnnotations[0];
List<String> editFeatures = new ArrayList<String>();
if (editAnnotation.cut()) {
editFeatures.add("cut");
}
if (editAnnotation.copy()) {
editFeatures.add("copy");
}
if (editAnnotation.pasteDefault()) {
editFeatures.add("paste-default");
}
if (editAnnotation.pastePlaintext()) {
editFeatures.add("paste-plaintext");
}
if (editAnnotation.pasteWordhtml()) {
editFeatures.add("paste-wordhtml");
}
RtePluginParameters widgetParameters = new RtePluginParameters();
widgetParameters.setFieldName("edit");
widgetParameters.setFeatures(convertFeatures(editFeatures));