code: public static void endDirectEdit(PageContext context) throws JspException {
  
          // get the direct edit bean from the context
          I_CmsDirectEditProvider eb = getDirectEditProvider(context);
  
          if (eb != null) {
              // the direct edit bean must be available
              eb.insertDirectEditEnd(context);
          }
      }
docs: Closes the current direct edit element.<p>
  
  @param context the current JSP page context
  
  @throws JspException in case something goes wrong