code: public void removeGalleryParam(String key) {
  
          if (m_searchObject.getGalleries().contains(key)) {
              m_galleriesChanged = true;
              m_handler.onClearGalleries(Collections.singletonList(key));
              m_searchObject.removeGallery(key);
              updateResultsTab(false);
              ValueChangeEvent.fire(this, m_searchObject);
          }
      }
docs: Removes a selected gallery from the search object.<p>
  
  @param key the gallery key