}
}
// Resolve the last suffix
ArraySuffix arraySuffix = (ArraySuffix) suffixes.get(max);
Expression arraySuffixIndex = arraySuffix.getIndex();
Object index;
if (arraySuffixIndex != null)
{
index = arraySuffixIndex.evaluate(
variableResolver, s_functionMapper,
ELParserHelper.LOGGER);
if (index == null)
{
throw new PropertyNotFoundException("Index is null: "
+ arraySuffixIndex.getExpressionString());
}
}
else
{
index = ((PropertySuffix) arraySuffix).getName();