code: public void searchElement(final String path, final Runnable nextAction) {
  
          m_dialogBean.setCurrentElement(path);
          m_dialogBean.setStartTab(GalleryTabId.cms_tab_results);
          m_dialogBean.setTreeToken(getTreeToken());
  
          CmsRpcAction<CmsGallerySearchBean> searchAction = new CmsRpcAction<CmsGallerySearchBean>() {
  
              @Override
              public void execute() {
  
                  start(200, true);
                  getGalleryService().getSearch(m_dialogBean, this);
              }
  
              @Override
              protected void onResponse(CmsGallerySearchBean result) {
  
                  stop(false);
                  m_searchObject = result;
                  m_handler.onInitialSearch(result, m_dialogBean, CmsGalleryController.this, false);
                  if (nextAction != null) {
                      nextAction.run();
                  }
              }
  
          };
          searchAction.execute();
      }
docs: Searches for a specific element and opens it's preview if found.<p>
  
  @param path the element path
  @param nextAction the next action to execute after the search data for the element has been loaded into the gallery dialog