code: protected String callBridge(RestHttpHelper restHelper,
                                  String snapshotURL,
                                  String snapshotBody) throws Exception {
          log.info("Making SNAPSHOT call to URL {} with body {}",
                   snapshotURL, snapshotBody);
  
          Map<String, String> headers = new HashMap<>();
          headers.put(HttpHeaders.CONTENT_TYPE, "application/json");
          RestHttpHelper.HttpResponse response = restHelper.put(snapshotURL, snapshotBody, headers);
          int statusCode = response.getStatusCode();
          if (statusCode != 200 && statusCode != 201) {
              String responseStr = response.getResponseBody();
  
              try {
                  String m = getMessageValue(responseStr);
                  if (m != null) {
                      responseStr = m;
                  }
              } catch (IOException ex) {
                  log.warn(ex.getMessage(), ex);
              }
  
              if (statusCode == 409) {
                  throw new ServerConflictException(responseStr);
              } else {
                  throw new RuntimeException(responseStr + " (" + statusCode + ")");
              }
  
          }
          return response.getResponseBody();
      }
docs: /*
  Calls the bridge application to create a snapshot