code: private int processTemplate()
      {
          ServletRequest req = pageContext.getRequest();
          Template.TemplateContext tc = (Template.TemplateContext)
                  req.getAttribute(TEMPLATE_SECTIONS);
  
          if (tc.secs == null) {
              tc.secs = new HashMap();
          }
  
          assert (tc.secs != null);
  
          if (!_visible) {
              // set the section so that it doesn't contain anything
              tc.secs.put(_name,"");
              localRelease();
              return EVAL_PAGE;
          }
          if (hasErrors()) {
              String s = getErrorsReport();
              tc.secs.put(_name,s);
              localRelease();
              return EVAL_PAGE;
          }
  
          BodyContent bc = getBodyContent();
          String content = (bc != null) ? bc.getString() : "";
          tc.secs.put(_name,content);
          localRelease();
          return EVAL_PAGE;
      }
docs: This method will process the section in the context of the Template
  @return returns the integer code doEndTag() will return.