@Override
  public Map<String, String> getConfigByType(String type) {
    Config configs = cluster.getDesiredConfigByType(type);
    return ImmutableMap.copyOf(configs.getProperties());
  }
Create a view associated cluster from an Ambari cluster.

@param cluster  the Ambari cluster
ambari-server/src/main/java/org/apache/ambari/server/view/ClusterImpl.java