FormatterFactory factory = StripesFilter.getConfiguration().getFormatterFactory();
Formatter formatter = factory.getFormatter(input.getClass(),
getPageContext().getRequest().getLocale(),
this.formatType,
this.formatPattern);
String formatted = (formatter == null) ? String.valueOf(input) : formatter.format(input);
// encrypt the formatted value if required
if (forOutput && formatted != null) {
try {
ValidationMetadata validate = getValidationMetadata();