}
Class<?> elementType = elementType(fieldInfo);
boolean nested = fieldInfo.isMapValueArray();
ConfigObject fieldMap = (ConfigObject) fieldValue;
Map<String, Object> newMap = new HashMap<>(fieldMap.size());
for (Map.Entry<String, ConfigValue> mapEntry : fieldMap.entrySet()) {
ConfigValue mapValue = mapEntry.getValue();
String mapKey = mapEntry.getKey();
ConfigValue resolvedMapObject;
if (nested) {
resolvedMapObject = expandSugarArray(mapValue, elementType, pluginRegistry, false);