Adding consistent method for beans violations.

Added consistent hasBeanViolation(String) method.
I believe this API can be revised also.