}
private RtePlugin buildParaFormatPlugin(RichTextEditor rteAnnotation) {
if (rteAnnotation.paraformat().length > 0) {
ParaFormat paraFormatAnnotation = rteAnnotation.paraformat()[0];
List<DialogElement> formatList = null;
if (paraFormatAnnotation.formats().length > 0) {
formatList = new ArrayList<DialogElement>();
for (int i = 0; i < paraFormatAnnotation.formats().length; i++) {
String formatFieldName = "format" + i;
ParaFormatFormat curFormat = paraFormatAnnotation.formats()[i];
RteParaFormatParameters paraParameters = new RteParaFormatParameters();
paraParameters.setFieldName(formatFieldName);
paraParameters.setTag(curFormat.tag());
paraParameters.setDescription(curFormat.description());
formatList.add(new RteParaFormat(paraParameters));