public static AclOperation fromString(String str) throws IllegalArgumentException {
        try {
            return AclOperation.valueOf(str.toUpperCase(Locale.ROOT));
        } catch (IllegalArgumentException e) {
            return UNKNOWN;
        }
    }
Parse the given string as an ACL operation.

@param str    The string to parse.

@return       The AclOperation, or UNKNOWN if the string could not be matched.
clients/src/main/java/org/apache/kafka/common/acl/AclOperation.java