@Override
protected Validator createValidator() {
Application app = FacesContext.getCurrentInstance().getApplication();
CreditCardValidator validator =
(CreditCardValidator) app.createValidator("com.sun.faces.ext.validator.CreditCardValidator");
return validator;
}