docs: public static UserLayoutNodeDescription createUserLayoutNodeDescription(Element xmlNode)
              throws PortalException {
          // is this a folder or a channel ?
          String nodeName = xmlNode.getNodeName();
          if (nodeName.equals("channel")) {
              return new UserLayoutChannelDescription(xmlNode);
          } else if (nodeName.equals("folder")) {
              return new UserLayoutFolderDescription(xmlNode);
          } else {
              throw new PortalException(
                      "Given XML element '" + nodeName + "' is neither folder nor channel");
          }
      }