private Map<String, ComponentSettings> createComponentSettingsMap() {
        if (!resultComponents.isEmpty()) {
            return resultComponents.entrySet()
                    .stream()
                    .collect(Collectors.toMap(
                            Entry::getKey,
                            entry -> entry.getValue().getSettings()));
        }
        return null;
    }
Creates a result component map for all components.

@return A result component map.
stroom-core-client/src/main/java/stroom/dashboard/client/main/SearchModel.java