}
public Object evaluateNextAttributes(Context context, Object attribute) {
for (AttributeRef attributeRef : attributes) {
Context attributeContext = context.createContext(attribute, attributeRef);
attribute = attributeContext.evaluate(attributeRef);
if (attributeRef.hasListIndex()) {
attribute = attributeRef.evaluateArrayOrList(attribute);
}
}
return attribute;