private static void getPropsFromFields(final Object object, final Map<String, Prop> propMap) {
        final Class<?> clazz = object.getClass();

        for (final Field declaredField : clazz.getDeclaredFields()) {
            if (declaredField.getDeclaredAnnotation(JsonIgnore.class) == null) {
//                final String name = getName(declaredField, declaredField::getName);
                final String name = declaredField.getName();
                final Prop prop = propMap.computeIfAbsent(name, k -> new Prop(name, object));
                prop.addFieldAnnotations(declaredField.getDeclaredAnnotations());
            }
        }
    }
@return otherValue if it is non-null or copyNulls is true, else thisValue
stroom-util/src/main/java/stroom/util/config/PropertyUtil.java