docs: public static void setUserPreference(
              Element compViewNode, String attributeName, IPerson person) {
          Document doc = compViewNode.getOwnerDocument();
          NodeList nodes = doc.getElementsByTagName("layout");
  
          boolean layoutOwner = false;
          Attr attrib;
          Element e;
          // Search Elements in nodelist
          for (int i = 0; i < nodes.getLength(); i++) {
              e = (Element) nodes.item(i);
              attrib = e.getAttributeNodeNS(Constants.NS_URI, Constants.LCL_FRAGMENT_NAME);
              if (attrib != null) {
                  layoutOwner = true;
              }
          }
  
          if (!layoutOwner) {
              Element plfNode =
                      HandlerUtils.getPLFNode(
                              compViewNode,
                              person,
                              true, // create if not found
                              false);
              if (plfNode.getAttributeNodeNS(Constants.NS_URI, Constants.LCL_ORIGIN) != null)
                  EditManager.addPrefsDirective(plfNode, attributeName, person);
          }
      }