code: protected void addVerbatimAfterComponent(UIComponentClassicTagBase parentTag, UIComponent verbatim,
                                               UIComponent component)
      {
          int indexOfComponentInParent = 0;
          UIComponent parent = component.getParent();
  
          // invert the order of this if and the assignment below. Since this line is
          // here, it appears an early return is acceptable/desired if parent is null,
          // and, if it is null, we should probably check for that before we try to
          // access it. 2006-03-15 jdl
          if (null == parent)
          {
              return;
          }
          List<UIComponent> children = parent.getChildren();
          indexOfComponentInParent = children.indexOf(component);
          if (children.size() - 1 == indexOfComponentInParent)
          {
              children.add(verbatim);
          }
          else
          {
              children.add(indexOfComponentInParent + 1, verbatim);
          }
          parentTag.addChild(verbatim);
      }
docs: <p>
  Add <i>verbatim</i> as a sibling of <i>_componentInstance</i> in <i>_componentInstance</i> in the parent's child
  list. <i>verbatim</i> is added to the list at the position immediatly following <i>_componentInstance</i>.
  </p>