code: public String getXmlEditorInitCalls() throws JspException {
  
          StringBuffer result = new StringBuffer(512);
          try {
              // iterate over unique widgets from collector
              Iterator<I_CmsWidget> i = getWidgetCollector().getUniqueWidgets().iterator();
              while (i.hasNext()) {
                  I_CmsWidget widget = i.next();
                  result.append(widget.getDialogInitCall(getCms(), this));
              }
          } catch (Exception e) {
              showErrorPage(e);
          }
          return result.toString();
      }
docs: Generates the JavaScript initialization calls for the used widgets in the editor form.<p>
  
  @return the JavaScript initialization calls for the used widgets
  @throws JspException if including the error page fails