AccessStrategy access;
if (IndexedAccess.getJavaElementType(type) != null) {
try {
Integer index = token == null ? null : Integer.valueOf(token);
access = new IndexedAccess(type, index);
validationContext.setCurrentIndex(index);
} catch (NumberFormatException e) {
throw new UnknownPropertyException(String.format("Cannot parse %s as an array/iterable index", token),
e);
}