code: public void add(CmsResource resource) {
  
          if (!m_processedIds.contains(resource.getStructureId())) {
              m_resources.add(resource);
              m_processedIds.add(resource.getStructureId());
              m_changed |= !(resource.getState().isUnchanged());
          }
      }
docs: Adds a new resource.<p>
  
  @param resource the resource to add