@Subscribe
  public void onClusterProvisioned(ClusterProvisionedEvent event) {
    if (event.getClusterId() == getClusterId()) {
      LOG.info("Removing temporary configurations after successful deployment of cluster id={} name={}", getClusterId(), getClusterName());
      for (Map.Entry<String, Set<String>> e : BlueprintConfigurationProcessor.TEMPORARY_PROPERTIES_FOR_CLUSTER_DEPLOYMENT.entrySet()) {
        try {
          configHelper.updateConfigType(this, getCurrentStackVersion(), controller,
            e.getKey(), Collections.emptyMap(), e.getValue(),
            "internal", "Removing temporary configurations after successful deployment"
          );
          LOG.info("Removed temporary configurations: {} / {}", e.getKey(), e.getValue());
        } catch (AmbariException ex) {
          LOG.warn("Failed to remove temporary configurations: {} / {}", e.getKey(), e.getValue(), ex);
        }
      }
      changeBlueprintProvisioningState(BlueprintProvisioningState.FINISHED);
    }
  }
Handles {@link ClusterConfigChangedEvent} which means that the
{{cluster-env}} may have changed.

@param event
         the change event.
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java