protected void populateContext ( JexlContext context , Result result ) { context . set ( VAR_CLASSNAME , result . getClassName ( ) ) ; context . set ( VAR_ATTRIBUTE_NAME , result . getAttributeName ( ) ) ; context . set ( VAR_CLASSNAME_ALIAS , result . getKeyAlias ( ) ) ; Map < String , String > typeNameMap = TypeNameValue . extractMap ( result . getTypeName ( ) ) ; context . set ( VAR_TYPENAME , typeNameMap ) ; String effectiveClassname = result . getKeyAlias ( ) ; if ( effectiveClassname == null ) { effectiveClassname = result . getClassName ( ) ; } context . set ( VAR_EFFECTIVE_CLASSNAME , effectiveClassname ) ; context . set ( VAR_RESULT , result ) ; }
Populate the context with values from the result .