Dynamically assign realm name when using DEFAULT realm