code: public static Set<String> asStringSet(Node node){
  
          if(node.getChildrenNodes() == null || node.getChildrenNodes().isEmpty()){
              return singleton(asString(node));
          }
  
          Set<String> list = new LinkedHashSet<>(node.getChildrenNodes().size());
  
          for(Node child: node.getChildrenNodes()){
              list.add(asString(child));
          }
  
          return list;
      }
docs: <p>
  Extract the String value for each child of the <code>node</code> or the node itself if it does not
  have children.
  </p>
  
  <p>It removes the {@literal "}.</p>
  @param node The java node which children or value to convert into a list of string.
  @return list of the node children string value or singleton list with the value of the node if no children.