code: protected List<CmsResource> getVisitedResources(CmsObject cms, String param, int numResults) throws CmsException {
  
          List<CmsResource> result = OpenCms.getSubscriptionManager().readResourcesVisitedBy(
              cms,
              getVisitedByFilter(cms, param));
          Collections.sort(result, I_CmsResource.COMPARE_DATE_LAST_MODIFIED);
          if (numResults > 0) {
              result = shrinkToFit(result, numResults);
          }
          return result;
      }
docs: Returns the visited resources according to the collector parameter.<p>
  
  @param cms the current users context
  @param param an optional collector parameter
  @param numResults the number of results
  
  @return the visited resources according to the collector parameter
  
  @throws CmsException if something goes wrong