docs: private static String trimVersion(String apiVersion) {
      if (apiVersion != null && apiVersion.contains("/")) {
        String[] versionParts = apiVersion.split("/");
        return versionParts[versionParts.length - 1];
      }
      return apiVersion;
    }