CacheController.cacheObjectInAdvancedCache("JNDIAuthorizationCache", key, infogluePrincipal, null, false);
}
catch(PrincipalNotFoundException pnfe)
{
logger.warn("Warning:" + pnfe.getMessage());
CacheController.cacheObjectInAdvancedCache("JNDIAuthorizationCache", key, new NullObject(), null, false);
}
catch(Exception e)
{
logger.error("Error:" + e.getMessage(), e);
CacheController.cacheObjectInAdvancedCache("JNDIAuthorizationCache", key, new NullObject(), null, false);
}
finally
{
ctx.close();
}