docs: private CmsGalleryConfiguration createGalleryConfigurationFromRequest(GalleryMode galleryMode) {
  
          CmsGalleryConfiguration conf = new CmsGalleryConfiguration();
          conf.setGalleryMode(galleryMode);
          conf.setReferencePath(getRequest().getParameter(I_CmsGalleryProviderConstants.CONFIG_REFERENCE_PATH));
          conf.setGalleryPath(getRequest().getParameter(I_CmsGalleryProviderConstants.CONFIG_GALLERY_PATH));
          conf.setCurrentElement(getRequest().getParameter(I_CmsGalleryProviderConstants.CONFIG_CURRENT_ELEMENT));
          String resourceTypes = getRequest().getParameter(I_CmsGalleryProviderConstants.CONFIG_RESOURCE_TYPES);
          String useLinkDefaultTypes = getRequest().getParameter(
              I_CmsGalleryProviderConstants.PARAM_USE_LINK_DEFAULT_TYPES);
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(resourceTypes)) {
              conf.setResourceTypes(Arrays.asList(resourceTypes.split(",")));
          }
          if (Boolean.parseBoolean(useLinkDefaultTypes)) {
              try {
                  CmsObject cms = getCmsObject();
                  CmsResource referenceResource = cms.readResource(
                      conf.getReferencePath(),
                      CmsResourceFilter.IGNORE_EXPIRATION);
                  String searchTypes = CmsVfsFileWidget.getDefaultSearchTypes(cms, referenceResource);
                  conf.setSearchTypes(CmsStringUtil.splitAsList(searchTypes, ","));
              } catch (CmsException e) {
                  LOG.warn(e.getLocalizedMessage(), e);
              }
          }
  
          String galleryTypes = getRequest().getParameter(I_CmsGalleryProviderConstants.CONFIG_GALLERY_TYPES);
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(galleryTypes)) {
              conf.setGalleryTypes(galleryTypes.split(","));
          }
          String tabs = getRequest().getParameter(I_CmsGalleryProviderConstants.CONFIG_TAB_CONFIG);
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(tabs)) {
              conf.setTabConfiguration(CmsGalleryTabConfiguration.resolve(tabs));
          } else {
              conf.setTabConfiguration(CmsGalleryTabConfiguration.getDefault());
          }
          String galleryStoragePrefix = getRequest().getParameter(
              I_CmsGalleryProviderConstants.CONFIG_GALLERY_STORAGE_PREFIX);
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(galleryStoragePrefix)) {
              galleryStoragePrefix = "";
          }
          conf.setGalleryStoragePrefix(galleryStoragePrefix);
          return conf;
      }