private void validateObject(FacesContext context, Object value) {
if (null != value) {
Validator validator = context.getApplication().createValidator(getType());
if (validator instanceof GraphValidator) {
GraphValidator graphValidator = (GraphValidator) validator;
Collection<String> messages = graphValidator.validateGraph(context,this, value,getProfiles());
if (null != messages) {
context.renderResponse();
// send all validation messages.
String clientId = getClientId(context);
for (String msg : messages) {