code: public void add(ResourceCollection rc) {
      if (rc instanceof FileSet) {
        FileSet fs = (FileSet) rc;
        fs.setProject(getProject());
      }
      resources.add(rc);
    }
docs: Adds a resource collection with execution hints.