code: public static CmsGallerySearchResult searchById(CmsObject cms, CmsUUID structureId, Locale locale)
      throws CmsException {
  
          CmsGallerySearch gallerySearch = new CmsGallerySearch();
          gallerySearch.init(cms);
          gallerySearch.setIndexForProject(cms);
          return gallerySearch.searchById(structureId, locale);
      }
docs: Searches by structure id.<p>
  
  @param cms the OpenCms context to use for the search
  @param structureId the structure id of the document to search for
  @param locale the locale for which the search result should be returned
  
  @return the search result
  
  @throws CmsException if something goes wrong