presto-plugin-toolkit/src/main/java/io/prestosql/plugin/base/security/SessionPropertyAccessControlRule.java/SessionPropertyAccessControlRule/match
class SessionPropertyAccessControlRule:    public Optional<Boolean> match(String user, String property)
    {
        if (userRegex.map(regex -> regex.matcher(user).matches()).orElse(true) &&
                propertyRegex.map(regex -> regex.matcher(property).matches()).orElse(true)) {
            return Optional.of(allow);
        }
        return Optional.empty();
    }