}
else {
richTextType = RichText.Type.HTML;
}
RichTextFactory richTextFactory = (RichTextFactory) FactoryExtensionFinder.getFactory(
RichTextFactory.class);
RichText richText = richTextFactory.getRichText(richTextType, newValue.toString());
int length = richText.getPlainTextLength();
int minimum = getMinPlainTextChars();
int maximum = getMaxPlainTextChars();
logger.debug("length=[{0}] minimum=[{1}] maximum=[{2}]", length, minimum, maximum);