class DataCache {

    void processAWSAssumeRoleAssertion(Assertion assertion) {
        
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("Processing AWS Assume Role for resource: {} and role: {}",
                    assertion.getResource(), assertion.getRole());
        }

        if (assertion.getEffect() == AssertionEffect.DENY) {
            return;
        }

        final String role = assertion.getRole();
        if (!awsRoleCache.containsKey(role)) {
            awsRoleCache.put(role, new HashSet<>());
        }
        
        final Set<String> resourcesForRole = awsRoleCache.get(role);
        resourcesForRole.add(assertion.getResource());
    }

    public  DataCache();

}