private void parseStackConfigurations () throws AmbariException {

    Set<StackConfigurationResponse> stackLevelConfigs = controller.getStackLevelConfigurations(
        Collections.singleton(new StackLevelConfigurationRequest(name, version, null)));

    for (StackConfigurationResponse config : stackLevelConfigs) {
      ConfigProperty configProperty = new ConfigProperty(config);
      String type = configProperty.getType();

      Map<String, ConfigProperty> mapTypeConfig = stackConfigurations.get(type);
      if (mapTypeConfig == null) {
        mapTypeConfig = new HashMap<>();
        stackConfigurations.put(type, mapTypeConfig);
      }

      mapTypeConfig.put(config.getPropertyName(),
          configProperty);
    }
  }
Parse configurations for the specified service from the stack definition.

@param stackService  service to parse the stack configuration for

@throws AmbariException an exception occurred getting configurations from the stack definition
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/Stack.java