}
try {
list.add(index, result = objectFactory.buildBean(beanClass, context));
} catch (Exception exc) {
throw new XWorkException(exc);
}
return result;
} else if (list.get(index) == null) {
Object result = null;
try {
list.set(index, result = objectFactory.buildBean(beanClass, context));
} catch (Exception exc) {
throw new XWorkException(exc);
}
return result;
}
}
return super.getProperty(context, target, name);