@Override
    public Optional<AuthorizableResource> find(final String namespace, final long id) {
        val results = resources.get(namespace);
        return results.stream().filter(r -> r.getId() == id).findFirst();
    }
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