String m = this.getMask();
if( !StringUtils.isEmpty( pv ) && m != null) {
try {
MaskFormatter mf = new MaskFormatter(m);
mf.setValueContainsLiteralCharacters(false);
maskedValue = mf.valueToString(pv);
if(maskedValue != null) {
// MaskFormatter leaves extra white space if it's too short, not good
// for our purposes
maskedValue = maskedValue.trim();
}