docs: private void checkForCircularReference() {
          ElementLayout layout = this;
          
          while ((layout = layout.getAncestor(ElementLayout.class)) != null) {
              if (layout.linked && layout.shared == shared && layout.layoutName.equals(layoutName)) {
                  CWFException.raise("Circular reference to layout " + layoutName);
              }
          }
      }