docs: private void reportResults(boolean replace, I_CmsReport report, int nrOfFiles) {
  
          // report entries
          if (replace) {
              // finish searching and replacing
              report.println(
                  Messages.get().container(Messages.RPT_SOURCESEARCH_END_SEARCHING_REPLACING_0),
                  I_CmsReport.FORMAT_HEADLINE);
          } else {
              // finish searching
              report.println(
                  Messages.get().container(Messages.RPT_SOURCESEARCH_END_SEARCHING_0),
                  I_CmsReport.FORMAT_HEADLINE);
          }
          // the results are written in the report
          report.println(Messages.get().container(Messages.RPT_SOURCESEARCH_RESULT_0), I_CmsReport.FORMAT_HEADLINE);
          report.println(
              Messages.get().container(
                  Messages.RPT_SOURCESEARCH_NR_OF_FILES_TO_SEARCH_IN_1,
                  new Integer(nrOfFiles).toString()),
              I_CmsReport.FORMAT_NOTE);
          report.println(
              Messages.get().container(
                  Messages.RPT_SOURCESEARCH_NR_OF_FILES_MATCHED_1,
                  new Integer(m_matchedResources.size()).toString()),
              I_CmsReport.FORMAT_NOTE);
          report.println(
              Messages.get().container(
                  Messages.RPT_SOURCESEARCH_SEARCH_ERROR_COUNT_1,
                  new Integer(m_errorSearch).toString()),
              I_CmsReport.FORMAT_NOTE);
          if (replace) {
              // replace report entries
              report.println(
                  Messages.get().container(
                      Messages.RPT_SOURCESEARCH_REPLACE_ERROR_COUNT_1,
                      new Integer(m_errorUpdate).toString()),
                  I_CmsReport.FORMAT_NOTE);
              report.println(
                  Messages.get().container(
                      Messages.RPT_SOURCESEARCH_LOCKED_FILES_1,
                      new Integer(m_lockedFiles).toString()),
                  I_CmsReport.FORMAT_NOTE);
              if (m_matchedResources.size() == 0) {
                  report.println(
                      Messages.get().container(Messages.RPT_SOURCESEARCH_NO_FILES_FOUND_0),
                      I_CmsReport.FORMAT_OK);
              } else {
                  report.println(
                      Messages.get().container(Messages.RPT_SOURCESEARCH_CLICK_OK_TO_GET_LIST_0),
                      I_CmsReport.FORMAT_OK);
              }
              if (m_lockedFiles > 0) {
                  report.println(
                      Messages.get().container(Messages.RPT_SOURCESEARCH_REPLACE_FAILED_0),
                      I_CmsReport.FORMAT_ERROR);
              } else {
                  report.println(
                      Messages.get().container(Messages.RPT_SOURCESEARCH_REPLACE_SUCCESS_0),
                      I_CmsReport.FORMAT_OK);
              }
          } else {
              // search report entries
              if (m_matchedResources.size() == 0) {
                  report.println(
                      Messages.get().container(Messages.RPT_SOURCESEARCH_NO_FILES_FOUND_0),
                      I_CmsReport.FORMAT_OK);
              } else {
                  report.println(
                      Messages.get().container(Messages.RPT_SOURCESEARCH_CLICK_OK_TO_GET_LIST_0),
                      I_CmsReport.FORMAT_OK);
              }
              if (m_errorSearch > 0) {
                  // only searching failed
                  report.println(
                      Messages.get().container(Messages.RPT_SOURCESEARCH_SEARCH_FAILED_0),
                      I_CmsReport.FORMAT_ERROR);
              } else {
                  // only searching was successful
                  report.println(
                      Messages.get().container(Messages.RPT_SOURCESEARCH_SEARCH_SUCCESS_0),
                      I_CmsReport.FORMAT_OK);
              }
          }
      }