private ShenyuTrieNode put(final String segment, final ShenyuTrieNode shenyuTrieNode) {
        if (Objects.isNull(shenyuTrieNode.getChildren())) {
            shenyuTrieNode.setChildren(new ConcurrentHashMap<>(Constants.TRIE_CHILDREN_SIZE));
        }
        ShenyuTrieNode childrenNode;
        if (containsKey(shenyuTrieNode.getChildren(), segment)) {
            childrenNode = getVal(shenyuTrieNode.getChildren(), segment);
        } else {
            childrenNode = new ShenyuTrieNode();
            childrenNode.setMatchStr(segment);
            childrenNode.setParentNode(shenyuTrieNode);
            shenyuTrieNode.getChildren().put(segment, childrenNode);
        }
        return childrenNode;
    }
put node.

@param segment segment
@param shenyuTrieNode shenyu trie node
@return ShenyuTrieNode
shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/trie/ShenyuTrie.java