code: @SuppressWarnings("rawtypes")
      @Override
      public void actionCloseDialog() throws JspException {
  
          // create a map with empty "resource" parameter to avoid changing the folder when returning to explorer file list
          Map<String, String[]> params = new HashMap<String, String[]>();
          params.put(PARAM_RESOURCE, new String[] {""});
          // set action parameter to initial dialog call
          params.put(CmsDialog.PARAM_ACTION, new String[] {CmsDialog.DIALOG_INITIAL});
          params.put(A_CmsListExplorerDialog.PARAM_SHOW_EXPLORER, new String[] {Boolean.TRUE.toString()});
          params.put(PARAM_STYLE, new String[] {CmsToolDialog.STYLE_NEW});
  
          // close link parameter present
          try {
              HttpSession session = getJsp().getJspContext().getSession();
              Collection resultList = (Collection)session.getAttribute(
                  CmsSearchReplaceSettings.ATTRIBUTE_NAME_SOURCESEARCH_RESULT_LIST);
              if ((resultList != null) && !resultList.isEmpty()) {
                  getToolManager().jspForwardTool(this, "/searchindex/sourcesearch/fileslist", params);
              } else {
                  getToolManager().jspForwardPage(this, "index.jsp", params);
              }
          } catch (Exception e) {
              // forward failed
              throw new JspException(e.getMessage(), e);
          }
      }
docs: Used to close the current JSP dialog.<p>
  
  This method tries to include the URI stored in the workplace settings.
  This URI is determined by the frame name, which has to be set
  in the frame name parameter.<p>
  
  @throws JspException if including an element fails