code: private static Element getParmEditSet(Document plf, IPerson person, boolean create)
              throws PortalException {
          Node root = plf.getDocumentElement();
          Node child = root.getFirstChild();
  
          while (child != null) {
              if (child.getNodeName().equals(Constants.ELM_PARM_SET)) return (Element) child;
              child = child.getNextSibling();
          }
  
          if (create == false) return null;
  
          String ID = null;
  
          try {
              ID = getDLS().getNextStructDirectiveId(person);
          } catch (Exception e) {
              throw new PortalException(
                      "Exception encountered while "
                              + "generating new parameter edit set node "
                              + "Id for userId="
                              + person.getID(),
                      e);
          }
          Element parmSet = plf.createElement(Constants.ELM_PARM_SET);
          parmSet.setAttribute(Constants.ATT_TYPE, Constants.ELM_PARM_SET);
          parmSet.setAttribute(Constants.ATT_ID, ID);
          parmSet.setIdAttribute(Constants.ATT_ID, true);
          root.appendChild(parmSet);
          return parmSet;
      }
docs: Get the parameter edits set if any stored in the root of the document or create it if
  passed-in create flag is true.