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