public void setCacheManager(CacheManager cacheManager) {
        this.cacheManager = cacheManager;
        afterCacheManagerSet();
    }
Sets the CacheManager used by this {@code SecurityManager} and potentially any of its
children components.
<p/>
After the cacheManager attribute has been set, the template method
{@link #afterCacheManagerSet afterCacheManagerSet()} is executed to allow subclasses to adjust when a
cacheManager is available.

@param cacheManager the CacheManager used by this {@code SecurityManager} and potentially any of its
                    children components.
core/src/main/java/org/apache/shiro/mgt/CachingSecurityManager.java