throws XDIMEException {
MarinerPageContext pageContext = getPageContext(context);
// do this first so that current pane is not surpressed.
XDIMEResult result = super.doElementEnd(context);
// XForms controls can only appear in the body element, so at this
// point we know we've found all of them. Now generate any implicit
// elements for the last forms model and register the complete form
// descriptors with the session context.