public boolean matches(String nodeName) {
        if (pattern == null) {
            return component.equals(nodeName);
        } else {
            return pattern.matcher(nodeName).matches();
        }
    }
Converts a glob string to a regular expression string.
Returns null if the glob should be handled as a literal (can only match one string).
Throws an exception if the glob is malformed.
shell/src/main/java/org/apache/kafka/shell/glob/GlobComponent.java