spring-geode/src/main/java/org/springframework/geode/data/support/ResourceCapableCacheDataImporterExporter.java
/**
		 * Evaluates the given SpEL {@link String expression}.
		 *
		 * @param expressionString {@link String} containing the SpEL expression to evaluate; must not be {@literal null}.
		 * @param region {@link Region} used to resolve {@literal regionName} variable references
		 * in the {@link String expression}; must not be {@literal null}.
		 * @return the value of the evaluated {@link String expression}.
		 * @see org.springframework.expression.Expression#getValue(EvaluationContext, Object)
		 * @see org.apache.geode.cache.Region
		 * @see #parse(String)
		 */
Evaluates the given SpEL  String expression.
@param expressionString  String containing the SpEL expression to evaluate; must not be  null.
@param region  Region used to resolve  regionName variable references
in the  String expression; must not be  null.
@return the value of the evaluated  String expression.
Evaluates the given SpEL String expression . @param expressionString String containing the SpEL expression to evaluate ; must not be null . @param region Region used to resolve regionName variable references in the String expression ; must not be null . @return the value of the evaluated String expression .
protected @Nullable String evaluate(@NonNull String expressionString, @NonNull Region<?, ?> region) {
			EvaluationContext evaluationContext = newEvaluationContext();
			evaluationContext.setVariable("regionName", region.getName().toLowerCase());
			getEnvironment().ifPresent(environment ->
				evaluationContext.setVariable("env", EnvironmentMapAdapter.from(environment)));
			Expression expression = parse(expressionString);
			Object value = getApplicationContext()
				.map(applicationContext -> expression.getValue(evaluationContext, applicationContext))
				.orElseGet(() -> expression.getValue(evaluationContext));
			return value != null ? value.toString() : null;
		}
protected @ Nullable String evaluate ( @ NonNull String expressionString , @ NonNull Region < ? , ? > region ) { EvaluationContext evaluationContext = newEvaluationContext ( ) ; evaluationContext . setVariable ( "regionName" , region . getName ( ) . toLowerCase ( ) ) ; getEnvironment ( ) . ifPresent ( environment -> evaluationContext . setVariable ( "env" , EnvironmentMapAdapter . from ( environment ) ) ) ; Expression expression = parse ( expressionString ) ; Object value = getApplicationContext ( ) . map ( applicationContext -> expression . getValue ( evaluationContext , applicationContext ) ) . orElseGet ( ( ) -> expression . getValue ( evaluationContext ) ) ; return value != null ? value . toString ( ) : null ; }
Evaluates the given SpEL {@link String expression}.
Evaluates the given SpEL { @link String expression } .