Realm behaviour need to be documented correctly:
Within the XUI, the realm maybe specified within the URI in several places...
Support is provided for all of these methods of specifying the realm, the only constraint is that they must match. If the realms so not match, a inconsistent realm error is raised and a message to that effect displayed to the user.
In the scenario that the XUI is loaded with inconsistent realms specified, the realm in the URL parameters (before the fragment) is taken as the primary and the user redirected to the login page using that realm