@Override
    public Optional<AuthorizableResource> find(final AuthorizationRequest request) {
        if (resources.containsKey(request.getNamespace())) {
            val authorizableResources = resources.get(request.getNamespace());
            return authorizableResources
                .stream()
                .filter(r -> RegexUtils.find(r.getPattern(), request.getUri()))
                .filter(r -> "*".equalsIgnoreCase(r.getMethod()) || RegexUtils.find(r.getMethod(), request.getMethod()))
                .findFirst();
        }
        return Optional.empty();
    }
This is {@link JsonAuthorizableResourceRepository}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-heimdall/src/main/java/org/apereo/cas/heimdall/authorizer/repository/JsonAuthorizableResourceRepository.java