/** * Checks weather the given expression is a variable or function and resolves the value * accordingly * * @param expression the expression to resolve * @return the resolved expression value */ public String resolveDynamicValue(String expression) { if (VariableUtils.isVariableName(expression)) { return getVariable(expression); } else if (functionRegistry.isFunction(expression)) { return FunctionUtils.resolveFunction(expression, this); } return expression; }