}
try {
FormulaParser parser = Formulas.getParser();
ASTNode ast = parser.parse(msgString, true);
Formatter formatter = Formulas.getFormatter(loc);
FormulaContext ctx = Formulas.createContext(map, formatter, parser);
// ctx.useBooleans(false);
for (int i = 0; i < numParams; i++)
ctx.setParam(Integer.toString(i + 1), args[i]);
List<?> resultList = ast.solve(ctx);
if (resultList != null && !resultList.isEmpty()) {
Object o = resultList.get(0);
if (o instanceof String)
return (String) o;