public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObject identity, IdentityObjectSearchControl[] controls) throws IdentityException, OperationNotSupportedException
{
IdentityStore toStore = resolveIdentityStore(identity);
IdentityStoreInvocationContext targetCtx = resolveInvocationContext(toStore, ctx);
if (toStore.getSupportedFeatures().isNamedRelationshipsSupported())
{
return toStore.getRelationshipNames(targetCtx, identity, controls);
}
IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultIdentityStore, ctx);
return defaultIdentityStore.getRelationshipNames(defaultCtx, identity, controls);
}