// All arguments are constant
try {
Value value = strategy.evaluate(functionCall, EmptyBindingSet.getInstance());
functionCall.replaceWith(new ValueConstant(value));
}
catch (ValueExprEvaluationException e) {
// TODO: incompatible values types(?), remove the affected part of
// the query tree
logger.debug("Failed to optimize function call with constant argument(s)", e);