docs: private String getAvailableLocalVariant(CmsObject cms, String path, String baseName) {
  
          A_CmsUI.get();
          List<String> localVariations = CmsLocaleManager.getLocaleVariants(
              baseName,
              UI.getCurrent().getLocale(),
              false,
              true);
  
          for (String name : localVariations) {
              if (cms.existsResource(path + name)) {
                  return name;
              }
          }
          return null;
      }