Add getResultFromExpression static method