* Only asterisk syntax (selection variable expressions) are allowed here.
*/
if (useSelectionAsRoot) {
VariableExpression boundObjectValue =
(VariableExpression) processingContext.getLocalVariable(SpringContextVariableNames.SPRING_BOUND_OBJECT_EXPRESSION);
if (boundObjectValue == null) {
// Try the deprecated name, to avoid legacy issues
boundObjectValue =
(VariableExpression) processingContext.getLocalVariable(SpringContextVariableNames.SPRING_FORM_COMMAND_VALUE);
}
final String boundObjectExpression =
(boundObjectValue == null? null : boundObjectValue.getExpression());
if (GLOBAL_EXPRESSION.equals(expression)) {
// Should return null if no object previously bound: nothing to apply 'global' on!
if (boundObjectExpression == null) {
return null;