if (lookupDomain.startsWith(SecurityConstants.JAAS_CONTEXT_ROOT) == false)
lookupDomain = SecurityConstants.JAAS_CONTEXT_ROOT + "/" + lookupDomain;
// lookup the JBossCachedAuthManager.
InitialContext context = new InitialContext();
CacheableManager manager = (CacheableManager) context.lookup(lookupDomain);
// Flush the Authentication Cache
manager.flushCache(principal);
} catch (NamingException e) {
throw new RuntimeException(e);
}
return false;