code: @Override
      public void doTag() throws JspException, IOException {
          LayoutTag layoutTag = (LayoutTag) findAncestorWithClass(this, LayoutTag.class);
          if (layoutTag == null) {
              throw new  IllegalStateException("div tag should be used in a layout tag inside.");
          }
  
          layoutTag.putDiv(name, TagUtils.toString(getJspBody()));
          logger.debug("div#{} put to layout#{}", name, layoutTag.getName());
      }
docs: override doTag method