docs: List<CmsResource> getPublishResources() {
  
          List<CmsResource> result = new ArrayList<CmsResource>();
          if (m_currentResource != null) {
              result.add(m_currentResource);
              CmsObject cms = A_CmsUI.getCmsObject();
              CmsSolrQuery query = m_currentConfigParser.getInitialQuery();
              CmsSearchController controller = new CmsSearchController(new CmsSearchConfiguration(m_currentConfigParser));
              controller.getPagination().getState().setCurrentPage(1);
              controller.addQueryParts(query, A_CmsUI.getCmsObject());
  
              CmsSolrIndex index = OpenCms.getSearchManager().getIndexSolr(CmsSolrIndex.DEFAULT_INDEX_NAME_OFFLINE);
              try {
                  CmsSolrResultList solrResultList = index.search(cms, query, true, CmsResourceFilter.IGNORE_EXPIRATION);
                  result.addAll(solrResultList);
              } catch (CmsSearchException e) {
                  LOG.error("Error reading resources for publish.", e);
              }
          }
          return result;
      }