docs: private static long getMostRecentDate(CmsObject cms) {
  
          long mostRecentDate = Long.MIN_VALUE;
  
          try {
              final List<CmsResource> resources = cms.getResourcesInFolder(
                  DEFAULT_DICTIONARY_DIRECTORY,
                  CmsResourceFilter.DEFAULT_FILES);
  
              for (final CmsResource resource : resources) {
                  final String resourceName = resource.getName();
                  // Check whether the resource matches the desired patterns
                  if (resourceName.matches(DICTIONARY_NAME_REGEX)
                      || resourceName.matches(ZIP_NAME_REGEX)
                      || resourceName.matches(CUSTOM_DICTIONARY)) {
                      if (resource.getDateLastModified() > mostRecentDate) {
                          mostRecentDate = resource.getDateLastModified();
                      }
                  }
              }
          } catch (CmsException e) {
              LOG.error("Could not read spellchecker dictionaries. ");
          }
  
          return mostRecentDate;
      }