public int getIdentityObjectsCount( IdentityStoreInvocationContext invocationCtx, IdentityObjectType identityType) throws IdentityException { int count = cacheSupport.getIdentityObjectCount(getCacheNS(invocationCtx), identityType.getName()); if (count != -1) { return count; } count = identityStore.getIdentityObjectsCount(invocationCtx, identityType); cacheSupport.putIdentityObjectCount(getCacheNS(invocationCtx), identityType.getName(), count); return count; }