public static PropertyDescriptor findPropertyDescriptor(Class<?> objectClass, String fieldName,
                                                            HintContainer deepIndexHintContainer) {
        PropertyDescriptor result = null;
        if (MappingUtils.isDeepMapping(fieldName)) {
            DeepHierarchyElement[] hierarchy = getDeepFieldHierarchy(objectClass, fieldName, deepIndexHintContainer);
            result = hierarchy[hierarchy.length - 1].getPropDescriptor();
        } else {
            PropertyDescriptor[] descriptors = getPropertyDescriptors(objectClass);

            if (descriptors != null) {
                int size = descriptors.length;
                for (int i = 0; i < size; i++) {

          /*
            Bugfix #2826468.
            if object class has methods, f.e, getValue() and getValue(int index) in this case
            could happen that this field couldn't be mapped, because getValue(int index) becomes first
            and PropertyDescriptor.getReadMethod() returns null. We need to exclude IndexedPropertyDescriptor from
            search. At this time dozer dosen't support mappings from indexed fields from POJO.

            See KnownFailures.testIndexedGetFailure()
          */
                    // TODO Disables for now as it breaks indexed array mapping
                    //          if (descriptors[i] instanceof IndexedPropertyDescriptor) {
                    //            continue;
                    //          }

                    String propertyName = descriptors[i].getName();
                    Method readMethod = descriptors[i].getReadMethod();
                    if (fieldName.equals(propertyName)) {
                        return fixGenericDescriptor(objectClass, descriptors[i]);
                    }

                    if (fieldName.equalsIgnoreCase(propertyName)) {
                        result = descriptors[i];
                    }
                }
            }
        }

        return result;
    }
Internal class that provides a various reflection utilities(specific to Dozer requirements) used throughout the code
base. Not intended for direct use by application code.
core/src/main/java/com/github/dozermapper/core/util/ReflectionUtils.java