} else {
log.warn( "SecurityDomainService for " + domain + " already active" );
}
ServiceName serviceName = AuthServices.authenticationService( this.getApplicationName(), name );
log.debug( "Deploying Authenticator: " + serviceName + " for security domain: " + domain );
Authenticator authenticator = new Authenticator();
authenticator.setAuthDomain( domain );
ServiceBuilder<Authenticator> builder = phaseContext.getServiceTarget().addService( serviceName, authenticator );
builder.setInitialMode( Mode.PASSIVE );
this.authService = builder.install();
}
}