code: public boolean shouldIncrementVersionBasedOnResources(CmsObject cms) throws CmsException {
  
          if (m_checkpointTime == 0) {
              return true;
          }
  
          // adjust the site root, if necessary
          CmsObject cmsClone = adjustSiteRootIfNecessary(cms, this);
  
          // calculate the module resources
          List<CmsResource> moduleResources = calculateModuleResources(cmsClone, this);
  
          for (CmsResource resource : moduleResources) {
              try {
                  List<CmsResource> resourcesToCheck = Lists.newArrayList();
                  resourcesToCheck.add(resource);
                  if (resource.isFolder()) {
                      resourcesToCheck.addAll(cms.readResources(resource, CmsResourceFilter.IGNORE_EXPIRATION, true));
                  }
                  for (CmsResource resourceToCheck : resourcesToCheck) {
                      if (resourceToCheck.getDateLastModified() > m_checkpointTime) {
                          return true;
                      }
                  }
              } catch (CmsException e) {
                  LOG.warn(e.getLocalizedMessage(), e);
                  continue;
              }
          }
          return false;
      }
docs: Determines if the version should be incremented based on the module resources' modification dates.
  
  @param cms the CMS context
  @return true if the version number should be incremented
  
  @throws CmsException if something goes wrong