String fieldName = field.getName();
if ((config == null) || !config.hasPath(fieldName)) {
return null;
} else if (field.isArray()) { // check CodableFieldInfo instead of expectedType
ConfigValue configValue = config.root().get(fieldName);
if ((configValue.valueType() != ConfigValueType.LIST) &&
field.autoArrayEnabled()) {
Object singleArrayValue = hydrateField(expectedType, fieldName, config);
Object wrappingArray = Array.newInstance(expectedType, 1);
Array.set(wrappingArray, 0, singleArrayValue);
return wrappingArray;