List classExtensions = ClassExtensionRegistry.getClassExtensions(targetClass);
int classExtensionsSize = classExtensions.size();
if (classExtensionsSize > 0) {
Method method = null;
for (int index = 0; index < classExtensionsSize; index++) {
ClassExtension currentClassExtension =
(ClassExtension)classExtensions.get(index);
Class classExtensionClass = currentClassExtension.getClass();
method = FieldValueAccessorUtil.lookupGetterMethod(classExtensionClass,
fieldName, 1);
if (method != null) {
classExtensionGetter = new ClassExtensionGetter(targetClass,
currentClassExtension, fieldName, method);