};
final AuthorizationResult result = votingStrategy.vote(roleDecisionManager.decide(rolesResource, subject));
if (invertResult) {
cache.put(subject, runtimeResource, result.invert());
} else {
cache.put(subject, runtimeResource, result);
}
if (resource instanceof Cacheable) {
((Cacheable) resource).markAsCached();