/** @see ExpressionFactory
*/
public Expression createExpression( final String text )
throws JellyException
{
Expression expression = null;
try
{
expression = new JexlExpression( org.apache.commons.jexl.ExpressionFactory.createExpression( text ) );
}
catch ( Exception anException )
{
throw new JellyException( "error evaluating expression", anException );
}
final Expression jexlExpression = expression;
if ( isSupportAntVariables() && isValidAntVariableName( text ) )
{
ExpressionSupport expr = new ExpressionSupport()
{
public Object evaluate( JellyContext context )
{
Object answer = jexlExpression.evaluate( context );
if ( answer == null )
{
answer = context.getVariable( text );