@ Override public String formatName ( Result result ) { String formatted ; JexlContext context = new MapContext ( ) ; this . populateContext ( context , result ) ; try { formatted = ( String ) this . parsedExpr . evaluate ( context ) ; } catch ( JexlException jexlExc ) { LOG . error ( "error applying JEXL expression to query results" , jexlExc ) ; formatted = null ; } return formatted ; }
Format the name for the given result .