protected String getCacheNS(IdentityStoreInvocationContext ctx) { if (cacheScope != null && cacheScope.equals("realm")) { return cacheSupport.getNamespace(attributeStore.getId(), ctx.getRealmId()); } if (cacheScope != null && cacheScope.equals("session")) { return cacheSupport.getNamespace(attributeStore.getId(), ctx.getRealmId(), ctx.getSessionId()); } return cacheSupport.getNamespace(attributeStore.getId()); }