public String getRefreshConfigsCommand(Cluster cluster, String hostName, String serviceName, String componentName) throws AmbariException {
    ServiceComponent serviceComponent = cluster.getService(serviceName).getServiceComponent(componentName);
    ServiceComponentHost sch = serviceComponent.getServiceComponentHost(hostName);
    return getRefreshConfigsCommand(cluster, sch);
  }
Calculates config types and keys were changed during configs change.
@param currentServiceConfigEntity service config entity with populated current cluster configs
@param configGroupId id of config group contained changed configs. Can be null in case group is default
@param clusterId cluster id
@param serviceName service name configs were changed for
@return map of type names to collections of properties' names were changed.
ambari-server/src/main/java/org/apache/ambari/server/state/ConfigHelper.java