[Major] refactoring use of BooleanSelection in StrolchQuery
[Minor] added DBC check for empty realm name