@Override
  public <T extends AbstractConfiguration<?>> ClusterManagementRealizationResult submitMessage(
      T configMessage, CommandType command) {
    switch (command) {
      case CREATE:
        return create(configMessage, HttpMethod.POST);
      case CREATE_OR_UPDATE:
        return create(configMessage, HttpMethod.PUT);
      case DELETE:
        return delete(configMessage);
    }

    throw new IllegalArgumentException("Unable to process command " + command
        + ". Perhaps you need to use a different method in ClusterManagementServiceTransport.");
  }
Concrete implementation of {@link ClusterManagementServiceTransport} which uses Spring's
{@link RestTemplate} for communication between client and CMS endpoint.
geode-management/src/main/java/org/apache/geode/management/api/RestTemplateClusterManagementServiceTransport.java