private Map<String, Long> convertToStringMap(StoragePolicySummary sts) { LinkedHashMap<String, Long> actualOutput = new LinkedHashMap<>(); for (Map.Entry<StorageTypeAllocation, Long> entry: StoragePolicySummary.sortByComparator(sts.storageComboCounts)) { actualOutput.put(entry.getKey().toString(), entry.getValue()); } return actualOutput; }