// http://dev.day.com/docs/en/cq/current/administering/configuring_rich_text_editor.html#Special
// Characters
private RtePlugin buildMiscToolsPlugin(RichTextEditor rteAnnotation) {
if (rteAnnotation.misctools().length > 0) {
MiscTools miscToolsAnnotation = rteAnnotation.misctools()[0];
List<String> features = new ArrayList<String>();
if (miscToolsAnnotation.specialchars()) {
features.add("specialchars");
}
if (miscToolsAnnotation.sourceedit()) {
features.add("sourceedit");
}
RtePluginParameters widgetParameters = new RtePluginParameters();
widgetParameters.setFieldName("misctools");
widgetParameters.setFeatures(convertFeatures(features));