docs: protected Map<String, String> getGalleryOpenParams(
          CmsObject cms,
          CmsMessages messages,
          I_CmsWidgetParameter param,
          String resource,
          long hashId) {
  
          Map<String, String> result = new HashMap<String, String>();
          result.put(I_CmsGalleryProviderConstants.CONFIG_GALLERY_MODE, A_CmsAjaxGallery.MODE_WIDGET);
          result.put(I_CmsGalleryProviderConstants.CONFIG_GALLERY_STORAGE_PREFIX, getGalleryStoragePrefix());
          result.put(I_CmsGalleryProviderConstants.CONFIG_RESOURCE_TYPES, getGalleryTypes());
          if (param.getId() != null) {
              result.put(I_CmsGalleryProviderConstants.KEY_FIELD_ID, param.getId());
              // use javascript to read the current field value
              result.put(
                  I_CmsGalleryProviderConstants.CONFIG_CURRENT_ELEMENT,
                  "'+document.getElementById('" + param.getId() + "').getAttribute('value')+'");
          }
          result.put(I_CmsGalleryProviderConstants.KEY_HASH_ID, "" + hashId);
          // the edited resource
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(resource)) {
              result.put(I_CmsGalleryProviderConstants.CONFIG_REFERENCE_PATH, resource);
          }
          // the start up gallery path
          CmsGalleryWidgetConfiguration configuration = getWidgetConfiguration(cms, messages, param);
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(configuration.getStartup())) {
              result.put(I_CmsGalleryProviderConstants.CONFIG_GALLERY_PATH, configuration.getStartup());
          }
          // set gallery types if available
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(configuration.getGalleryTypes())) {
              result.put(I_CmsGalleryProviderConstants.CONFIG_GALLERY_TYPES, configuration.getGalleryTypes());
          }
          result.put(I_CmsGalleryProviderConstants.CONFIG_GALLERY_NAME, getGalleryName());
          return result;
      }