final String expectedType = dynamicOperation.getExpectedType();
// Determine the literal value ...
Object literalValue = null;
if (staticOperand instanceof BindVariableName) {
BindVariableName bindVariable = (BindVariableName)staticOperand;
String variableName = bindVariable.getVariableName();
literalValue = variables.get(variableName); // may be null
} else {
Literal literal = (Literal)staticOperand;
literalValue = literal.getValue();
}