Item[] right = {factory.createDoubleValue(2.2),
factory.createIntValue(42),
factory.createDoubleValue(10101010)};
context.getCurrentScope().declareVariable(
new ImmutableExpandedName("", "left"),
factory.createSequence(left));
context.getCurrentScope().declareVariable(
new ImmutableExpandedName("", "right"),
factory.createSequence(right));
Expression exp = compileExpression("$left != $right");
Value result = exp.evaluate(context);