{
throw new ConstraintViolationException(cvs, model);
}
else // gc:CreateMode
{
QueriedResource match = (QueriedResource)getUriInfo().getMatchedResources().get(0);
throw new ConstraintViolationException(cvs, match.describe().add(model));
}
}
return model;
}