private Map<String, Map<String, String>> unescapeConfigNames(Map<String, Map<String, String>> configurations) {
    Map<String, Map<String, String>> unescapedConfigs = new HashMap<>();
    for (Entry<String, Map<String, String>> configTypeEntry : configurations.entrySet()) {
      Map<String, String> unescapedTypeConfigs = new HashMap<>();
      for (Entry<String, String> config : configTypeEntry.getValue().entrySet()) {
        unescapedTypeConfigs.put(StringEscapeUtils.unescapeJava(config.getKey()), config.getValue());
      }
      unescapedConfigs.put(configTypeEntry.getKey(), unescapedTypeConfigs);
    }

    return unescapedConfigs;
  }
Collects actual configurations and configuration attributes for specified host.
@param hostId host id to collect configurations and configuration attributes
@return event ready to send to agent
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/state/ConfigHelper.java