IdentityStoreInvocationContext resolveInvocationContext(String id, IdentityStoreInvocationContext invocationCtx)
{
RepositoryIdentityStoreSessionImpl repoSession = (RepositoryIdentityStoreSessionImpl)invocationCtx.getIdentityStoreSession();
IdentityStoreSession targetSession = repoSession.getIdentityStoreSession(id);
return new SimpleIdentityStoreInvocationContext(targetSession, invocationCtx.getRealmId());
}