// Crime codes must be correctly formatted.
ValidatorController.addAsFocusListener(crimeCode, crimeCodeFormatValidator);
// Phone numbers can be pushed into shape if they are almost correctly
// formatted.
ValidatorController.addAsFocusListener(phone, new USPhoneValidator());
// Creates a custom validator.
Validator statuteValidator = createStatuteValidator(crimeCode);
// Can add the same validator to multiple subjects to do multi-field