Replace reflection with instanceof check on instance.
Replace manual ConstraintViolations with simple error strings.