public Map<String, String> getConfigurationProperties(String service, String type) {
    Map<String, String> configMap = new HashMap<>();
    Map<String, ConfigProperty> configProperties = serviceConfigurations.get(service).get(type);
    if (configProperties != null) {
      for (Map.Entry<String, ConfigProperty> configProperty : configProperties.entrySet()) {
        configMap.put(configProperty.getKey(), configProperty.getValue().getValue());
      }
    }
    return configMap;
  }
Get config properties for the specified service and configuration type.

@param service  service name
@param type     configuration type

@return map of property names to values for the specified service and configuration type
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/Stack.java