} else {
props.put(key, node.asString());
}
}
AuthenticatorService authenticatorService = new AuthenticatorService(repositoryName, props);
ServiceName serviceName = ModeShapeServiceNames.authenticatorServiceName(repositoryName, authenticatorName);
ServiceBuilder<JcrRepository> authenticatorBuilder = target.addService(serviceName, authenticatorService);
authenticatorBuilder.addDependency(ModeShapeServiceNames.ENGINE,
ModeShapeEngine.class,
authenticatorService.getModeShapeEngineInjector());
authenticatorBuilder.addDependency(ModeShapeServiceNames.repositoryServiceName(repositoryName),
JcrRepository.class,
authenticatorService.getJcrRepositoryInjector());
authenticatorBuilder.setInitialMode(ServiceController.Mode.ACTIVE);
ServiceController<JcrRepository> controller = authenticatorBuilder.install();
newControllers.add(controller);
}