field.setAccessible(true);
try {
if (value instanceof ResourceList) {
// Value is a multi-valued resource
ResourceList resList = (ResourceList) value;
// We cannot do this in ResourceList because the resource doesn't have access to
// the UIMA context we use here. Resources are initialize with their own contexts
// by the UIMA framework!
List<Object> elements = new ArrayList<Object>();
for (int i = 0; i < resList.getSize(); i++) {
Object elementValue = getResourceObject(context, resList.getResourceName()
+ PREFIX_SEPARATOR + ResourceList.ELEMENT_KEY + "[" + i + "]");
elements.add(elementValue);
}
SimpleTypeConverter converter = new SimpleTypeConverter();