public static Query replaceExpressionParameters(final Query query) {
        Query result = query;
        if (query != null) {
            ExpressionOperator expression = query.getExpression();
            if (query.getParams() != null && expression != null) {
                final ParamValues paramValues = ParamUtil.createParamValueFunction(query.getParams());
                expression = replaceExpressionParameters(expression, paramValues, false);
            }
            result = query.copy().expression(expression).build();
        }
        return result;
    }
@return True if there are at least one enabled term under the expressionOperator
stroom-query/stroom-query-api/src/main/java/stroom/query/api/ExpressionUtil.java