Bugfix to allow CA or CA-BC realmCodes