}
private RtePlugin buildSubSuperscriptPlugin(RichTextEditor rteAnnotation) {
if (rteAnnotation.subsuperscript().length > 0) {
SubSuperscript subSuperscriptAnnotation = rteAnnotation.subsuperscript()[0];
List<String> features = new ArrayList<String>();
if (subSuperscriptAnnotation.subscript()) {
features.add("subscript");
}
if (subSuperscriptAnnotation.superscript()) {
features.add("superscript");
}
RtePluginParameters widgetParameters = new RtePluginParameters();
widgetParameters.setFieldName("subsuperscript");
widgetParameters.setFeatures(convertFeatures(features));