code: public void actionMerge(I_CmsReport report) {
  
          m_report = report;
          m_report.println(Messages.get().container(Messages.RPT_MERGE_PAGES_BEGIN_0), I_CmsReport.FORMAT_HEADLINE);
  
          try {
              // collect all pages and sort them depending on their state
              collectResources();
              // merge all pages that can be merged
              mergePages();
              // cleanup
              cleanup();
          } catch (CmsException e) {
              m_report.println(e);
          }
  
      }
docs: Merges the specified resources.<p>
  
  @param report the cms report