code: public String getWidgetIncludes() throws JspException {
  
          StringBuffer result = new StringBuffer(32);
          try {
              // iterate over unique widgets from collector
              Iterator<CmsWidgetDialogParameter> i = getWidgets().iterator();
              Set<I_CmsWidget> set = new HashSet<I_CmsWidget>();
              while (i.hasNext()) {
                  I_CmsWidget widget = i.next().getWidget();
                  if (!set.contains(widget)) {
                      result.append(widget.getDialogIncludes(getCms(), this));
                      result.append('\n');
                      set.add(widget);
                  }
              }
          } catch (Throwable e) {
  
              includeErrorpage(this, e);
          }
          return result.toString();
      }
docs: Generates the HTML include tags for external JavaScripts files of the used widgets.<p>
  
  @return the HTML include tags for external JavaScripts files of the used widgets
  
  @throws JspException if an error occurs during JavaScript generation