@Override
    public boolean supports(Class<?> clazz) {
        return Pet.class.isAssignableFrom(clazz);
    }
This Validator validates *just* Pet instances
src/main/java/org/springframework/samples/petclinic/web/PetValidator.java