code: public static Treenode findNode(Treeview tree, String path, boolean create, Class<? extends Treenode> clazz,
                                      MatchMode matchMode) {
          if (tree.getChildCount() == 0 && !create) {
              return null;
          }
  
          return CWFUtil.findNode(tree, clazz, path, create, matchMode);
      }
docs: Returns the tree item associated with the specified \-delimited path.
  
  @param tree Tree to search.
  @param path \-delimited path to search.
  @param create If true, tree nodes are created if they do not already exist.
  @param clazz Class of Treenode to create.
  @param matchMode The match mode.
  @return The tree item corresponding to the specified path, or null if not found.