public UserRealm getRealm ( String realmName ) { if ( realmName == null ) { if ( _realmMap . size ( ) == 1 ) return ( UserRealm ) _realmMap . values ( ) . iterator ( ) . next ( ) ; log . warn ( "Null realmName with multiple known realms" ) ; } return ( UserRealm ) _realmMap . get ( realmName ) ; }
Get a named UserRealm .