public static _ValueReferenceWrapper resolve ( ValueExpression valueExpression , final ELContext elCtx ) { _ValueReferenceResolver resolver = new _ValueReferenceResolver ( elCtx . getELResolver ( ) ) ; ELContext elCtxDecorator = new _ELContextDecorator ( elCtx , resolver ) ; valueExpression . getValue ( elCtxDecorator ) ; while ( resolver . lastObject . getBase ( ) instanceof CompositeComponentExpressionHolder ) { valueExpression = ( ( CompositeComponentExpressionHolder ) resolver . lastObject . getBase ( ) ) . getExpression ( ( String ) resolver . lastObject . getProperty ( ) ) ; valueExpression . getValue ( elCtxDecorator ) ; } return resolver . lastObject ; }
This method can be used to extract the ValueReferenceWrapper from the given ValueExpression .