}
private RtePlugin buildJustifyPlugin(RichTextEditor rteAnnotation) {
if (rteAnnotation.justify().length > 0) {
Justify justifyAnnotation = rteAnnotation.justify()[0];
List<String> features = new ArrayList<String>();
if (justifyAnnotation.justifyleft()) {
features.add("justifyleft");
}
if (justifyAnnotation.justifycenter()) {
features.add("justifycenter");
}
if (justifyAnnotation.justifyright()) {
features.add("justifyright");
}
RtePluginParameters widgetParameters = new RtePluginParameters();
widgetParameters.setFieldName("justify");