} catch ( final Exception ignore ) {
mode = RolesMode.GROUP;
}
if ( authType == null || authType.toLowerCase().equals( "jaas" ) || authType.toLowerCase().equals( "container" ) ) {
_authenticationManager = new JAASAuthenticationManager( domain, mode );
} else if ( authType.toLowerCase().equals( "property" ) ) {
_authenticationManager = new PropertyAuthenticationManager( null );
} else {
_authenticationManager = loadClazz( authType, AuthenticationManager.class );
}