question: protected boolean loggedIntoValidRealm ( String requestedRealm , String loggedInRealm ) { return requestedRealm . equalsIgnoreCase ( loggedInRealm ) || RealmUtils . isParentRealm ( loggedInRealm , requestedRealm ) ; }
target:  Check to see if the realm logged into is valid for getting access to the realm requested.