code: public void restoreSecurityContext(CacheContext context) {
  		SavedAuthorization cached = context.get(CacheContext.SECURITY_CONTEXT_KEY, SavedAuthorization.class);
  		if (cached != null) {
  			log.debug("Restoring security context {}", cached);
  			securityManager.restoreSecurityContext(cached);
  		} else {
  			securityManager.clearSecurityContext();
  		}
  	}
docs: Puts the cached security context in the thread local.
  
  @param context the cache context