@Override
  public Map<String, DesiredConfig> getDesiredConfigs(boolean cachedConfigEntities) {
    Map<String, Set<DesiredConfig>> activeConfigsByType = getDesiredConfigs(false, cachedConfigEntities);
    return Maps.transformEntries(
      activeConfigsByType,
      (key, value) -> value.iterator().next());
  }
Gets all versions of the desired configurations for the cluster.
@return a map of type-to-configuration information.
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java