// reload the config
this.securityConfiguration.clearCache();
// setup the CacheManager ( this could be injected if we where less coupled with ehcache)
// The plexus wrapper can interpolate the config
EhCacheManager ehCacheManager = new EhCacheManager();
ehCacheManager.setCacheManager(cacheManager);
this.getSecurityManager().setCacheManager(ehCacheManager);
if (org.apache.shiro.util.Initializable.class.isInstance(this.getSecurityManager())) {
((org.apache.shiro.util.Initializable) this.getSecurityManager()).init();
}