ControllerResult<Map<ConfigResource, ApiError>> legacyAlterConfigs(
        Map<ConfigResource, Map<String, String>> newConfigs,
        boolean newlyCreatedResource
    ) {
        List<ApiMessageAndVersion> outputRecords =
                BoundedList.newArrayBacked(MAX_RECORDS_PER_USER_OP);
        Map<ConfigResource, ApiError> outputResults = new HashMap<>();
        for (Entry<ConfigResource, Map<String, String>> resourceEntry :
            newConfigs.entrySet()) {
            legacyAlterConfigResource(resourceEntry.getKey(),
                resourceEntry.getValue(),
                newlyCreatedResource,
                outputRecords,
                outputResults);
        }
        return ControllerResult.atomicOf(outputRecords, outputResults);
    }
Determine the result of applying a batch of legacy configuration changes.  Note
that this method does not change the contents of memory.  It just generates a
result, that you can replay later if you wish using replay().

@param newConfigs        The new configurations to install for each resource.
                         All existing configurations will be overwritten.
@return                  The result.
metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java