docs: @SuppressWarnings("unused")
      public static CmsGalleryDialog createDialog(final CmsPopup popup) {
  
          CmsGalleryDialog galleryDialog = new CmsGalleryDialog(new I_CmsGalleryHandler() {
  
              public boolean filterDnd(CmsResultItemBean resultBean) {
  
                  // TODO: Auto-generated method stub
                  return true;
              }
  
              public Widget getAdditionalTypeTabControl() {
  
                  return null;
              }
  
              public I_CmsAutoHider getAutoHideParent() {
  
                  return popup;
              }
  
              public CmsDNDHandler getDndHandler() {
  
                  return null;
              }
  
              public void processResultItem(CmsResultListItem item) {
  
                  // do nothing
              }
  
          }, CmsTabbedPanelStyle.buttonTabs);
          try {
              CmsGalleryDataBean data = getGalleryDataFromDict();
              CmsGallerySearchBean search = getSearchBeanFromDict();
              new CmsGalleryController(new CmsGalleryControllerHandler(galleryDialog), data, search);
          } catch (SerializationException e) {
              CmsErrorDialog.handleException(
                  new Exception(
                      "Deserialization of gallery data failed. This may be caused by expired java-script resources, please clear your browser cache and try again.",
                      e));
          }
  
          return galleryDialog;
      }