code: public static boolean startDirectEdit(PageContext context, CmsDirectEditParams params) throws JspException {
  
          // get the direct edit bean from the context
          I_CmsDirectEditProvider eb = getDirectEditProvider(context);
  
          boolean result = false;
          if (eb != null) {
              // the direct edit bean must be available
              if (eb.isManual(params.getMode())) {
                  // store the given parameters for the next manual call
                  setDirectEditProviderParams(context, params);
              } else {
                  // automatic mode, insert direct edit HTML
                  result = eb.insertDirectEditStart(context, params);
              }
          }
  
          return result;
      }
docs: Includes the "direct edit" start element that adds HTML for the editable area to
  the output page.<p>
  
  @param context the current JSP page context
  @param params the direct edit parameters
  
  @return <code>true</code> in case a direct edit element has been opened
  
  @throws JspException in case something goes wrong