The purpose of a Realm is to group configuration of several identity stores. IdentitySession exposes operations within single Realm
PicketLink IDM architecture