class ClusterProxyService {

    public ConfigRegistrationResponse registerCluster(Stack stack) {
        ConfigRegistrationRequest proxyConfigRequest = createProxyConfigRequest(stack);
        ConfigRegistrationResponse configRegistrationResponse = clusterProxyRegistrationClient.registerConfig(proxyConfigRequest);
        stackUpdater.updateClusterProxyRegisteredFlag(stack, true);
        return configRegistrationResponse;
    }

}