result.add(field);
}
}
if (result.size() == 0) {
throw new ReflectionException("Unable to find field, class '" + clazz + "', fieldName '"
+ fieldName + "'");
}
if (result.size() > 1) {
throw new ReflectionException("Unable to choose field, '" + clazz + "', fieldName '"
+ fieldName + "'");
}
Field field = result.iterator().next();
cacheUniqueField.put(clazz, fieldName, field);
return field;