for (Object item : (List<?>) value) {
processValueForCounter(counterName, item, path);
}
}
else if (value instanceof Tuple) {
Tuple t = (Tuple) value;
if (t.hasFieldName(key)) {
result = t.getValue(key);
}
}
else if (value instanceof Map) {
result = ((Map<?, ?>) value).get(key);
}