public static Set<ConstraintDescriptor<?>> extract(FacesContext context, RequestContext requestContext, ValueExpression ve) {
if (ve != null) {
ELContext elContext = context.getELContext();
ValueReference vr = ValueExpressionAnalyzer.getReference(elContext, ve);
if (vr != null) {
Validator validator = requestContext.getApplicationContext().getValidatorFactory().getValidator();
Object base = vr.getBase();
Object property = vr.getProperty();
if (base != null && property != null) {
BeanDescriptor beanDescriptor = validator.getConstraintsForClass(base.getClass());
if (beanDescriptor != null) {