docs: public void actionPublish() throws JspException {
  
          try {
              boolean isFolder = false;
              if (!isMultiOperation()) {
                  if (isDirectPublish()) {
                      isFolder = getCms().readResource(getParamResource(), CmsResourceFilter.ALL).isFolder();
                  }
              }
              if (performDialogOperation()) {
                  // if no exception is caused and "true" is returned publish operation was successful
                  if (isMultiOperation() || isFolder) {
                      // set request attribute to reload the explorer tree view
                      List<String> folderList = new ArrayList<String>();
                      folderList.add(CmsResource.getParentFolder(getResourceList().get(0)));
                      Iterator<String> it = getResourceList().iterator();
                      while (it.hasNext()) {
                          String res = it.next();
                          if (CmsResource.isFolder(res)) {
                              folderList.add(res);
                          }
                      }
                      getJsp().getRequest().setAttribute(REQUEST_ATTRIBUTE_RELOADTREE, folderList);
                  }
                  actionCloseDialog();
              } else {
                  // "false" returned, display "please wait" screen
                  getJsp().include(FILE_DIALOG_SCREEN_WAIT);
              }
          } catch (Throwable e) {
              // prepare common message part
              includeErrorpage(this, e);
          }
      }