code: public CmsGallerySearchResult getSearchResult(Locale locale) {
  
          if (!m_searchResultMap.containsKey(locale)) {
              CmsGallerySearchResult sResult;
              try {
                  sResult = CmsGallerySearch.searchById(m_cms, m_resource.getStructureId(), locale);
                  m_searchResultMap.put(locale, sResult);
              } catch (CmsException e) {
                  LOG.error(e.getLocalizedMessage(), e);
              }
          }
          return m_searchResultMap.get(locale);
      }
docs: Returns the SOLR search result for the current resource.<p>
  
  @param locale the content locale
  
  @return the search result