public IdentityObjectAttribute getAttribute(IdentityStoreInvocationContext invocationContext, IdentityObject identity, String name) throws IdentityException { IdentityObjectAttribute result; IdentityStore toStore = resolveIdentityStore(identity); IdentityStoreInvocationContext targetCtx = resolveInvocationContext(toStore, invocationContext); result = toStore.getAttribute(targetCtx, identity, name); if (result == null && toStore != defaultAttributeStore) { IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultAttributeStore, invocationContext); result = defaultAttributeStore.getAttribute(defaultCtx, identity, name); } return result; }