private boolean hasGroupSpecificConfigsForType(Cluster cluster, String hostname, String type) {
    try {
      Map<Long, ConfigGroup> configGroups = cluster.getConfigGroupsByHostname(hostname);
      if (configGroups != null && !configGroups.isEmpty()) {
        for (ConfigGroup configGroup : configGroups.values()) {
          Config config = configGroup.getConfigurations().get(type);
          if (config != null) {
            return true;
          }
        }
      }
    } catch (AmbariException ambariException) {
      LOG.warn("Could not determine group configuration for host. Details: " + ambariException.getMessage());
    }
    return false;
  }
Determines if the hostname has group specific configs for the type specified

@param cluster
@param hostname of the host to look for
@param type     the type to look for (e.g. flume-conf)
@return <code>true</code> if the hostname has group specific configuration for the type
ambari-server/src/main/java/org/apache/ambari/server/state/ConfigHelper.java