private void assertSuccessful(ClusterManagementResult result) {
    if (result == null) {
      ClusterManagementResult somethingVeryBadHappened = new ClusterManagementResult(
          ClusterManagementResult.StatusCode.ERROR, "Unable to parse server response.");
      throw new ClusterManagementException(somethingVeryBadHappened);
    } else if (!result.isSuccessful()) {
      throw new ClusterManagementException(result);
    }
  }
Implementation of {@link ClusterManagementService} interface which represents the cluster
management service as used by a Java client.
<p>
In order to manipulate Geode components (Regions, etc.) clients can construct instances of {@link
AbstractConfiguration}s and call the corresponding
{@link ClientClusterManagementService#create(AbstractConfiguration)},
{@link ClientClusterManagementService#delete(AbstractConfiguration)} or
{@link ClientClusterManagementService#update(AbstractConfiguration)} method. The returned {@link
ClusterManagementResult} will contain all necessary information about the outcome of the call.
This will include the result of persisting the config as part of the cluster configuration as
well as creating the actual component in the cluster.
<p>
All create calls are idempotent and will not return an error if the desired component already
exists.
geode-management/src/main/java/org/apache/geode/management/cluster/client/internal/ClientClusterManagementService.java