final SecurityBootstrapService bootstrapService = new SecurityBootstrapService();
target.addService(SecurityBootstrapService.SERVICE_NAME, bootstrapService).setInitialMode(
ServiceController.Mode.ACTIVE).install();
// add service to bind SecurityDomainJndiInjectable to JNDI
final SecurityDomainJndiInjectable securityDomainJndiInjectable = new SecurityDomainJndiInjectable();
final BinderService binderService = new BinderService("jaas");
target.addService(ContextNames.JAVA_CONTEXT_SERVICE_NAME.append("jboss", "jaas"), binderService)
.addInjection(binderService.getManagedObjectInjector(), securityDomainJndiInjectable)
.addDependency(ContextNames.JAVA_CONTEXT_SERVICE_NAME.append("jboss"), NamingStore.class,
binderService.getNamingStoreInjector()).addDependency(
SecurityManagementService.SERVICE_NAME, ISecurityManagement.class,
securityDomainJndiInjectable.getSecurityManagementInjector()).setInitialMode(
ServiceController.Mode.ACTIVE).install();
final SecurityManagementService securityManagementService = new SecurityManagementService(
resolvedAuthenticationManagerClassName, deepCopySubject, resolvedCallbackHandlerClassName,
resolvedAuthorizationManagerClassName, resolvedAuditManagerClassName,