code: protected List<CmsResource> getSubscribedDeletedResources(CmsObject cms, String param, int numResults)
      throws CmsException {
  
          Map<String, String> params = getParameters(param);
          CmsSubscriptionFilter filter = getSubscriptionFilter(cms, params);
          String parentPath = filter.getParentPath();
          if (CmsStringUtil.isNotEmpty(parentPath)) {
              parentPath = cms.getRequestContext().removeSiteRoot(parentPath);
          }
  
          List<I_CmsHistoryResource> deletedResources = OpenCms.getSubscriptionManager().readSubscribedDeletedResources(
              cms,
              filter.getUser(),
              Boolean.valueOf(params.get(PARAM_KEY_INCLUDEGROUPS)).booleanValue(),
              parentPath,
              filter.isIncludeSubFolders(),
              filter.getFromDate());
  
          // cast the history resources to CmsResource objects
          List<CmsResource> result = new ArrayList<CmsResource>(deletedResources.size());
          for (Iterator<I_CmsHistoryResource> i = deletedResources.iterator(); i.hasNext();) {
              I_CmsHistoryResource deletedResource = i.next();
              result.add((CmsResource)deletedResource);
          }
          if (numResults > 0) {
              result = shrinkToFit(result, numResults);
          }
          return result;
      }
docs: Returns the subscribed deleted 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 subscribed deleted resources according to the collector parameter
  
  @throws CmsException if something goes wrong