}
// If web authorizer, test the request.isInRole() method also
else if ( request != null && authorizer instanceof WebAuthorizer )
{
WebAuthorizer wa = (WebAuthorizer)authorizer;
if ( wa.isUserInRole( request, role ) )
{
fireEvent( WikiSecurityEvent.PRINCIPAL_ADD, role, session );
if ( log.isDebugEnabled() )
{
log.debug("Added container role " + role.getName() + "." );