This validation should automatically be done inside CommonAttributes.FILTER when validateAndSet() or resolveModelAttribute() are called. It looks like CommonAttributes.PATTERN, REPLACEMENT and REPLACE_ALL need some more configuration. I'll ping James Perkins to have a look and provide more feedback on how to accomplish this.