@SecurityScope
public AuthenticationService provide() {
String currentState = manager.getCurrent();
// Get Service Instance
AuthenticationService atnService = AccessController.doPrivileged(
new PrivilegedLookup<AuthenticationService>(
serviceLocator, AuthenticationService.class));
// Get Service Configuration
org.glassfish.security.services.config.AuthenticationService atnConfiguration =
serviceLocator.getService(org.glassfish.security.services.config.AuthenticationService.class,currentState);
// Initialize Service
atnService.initialize(atnConfiguration);
return atnService;
}