props.put(key, node.asString());
}
}
ensureClassLoadingPropertyIsSet(props);
SequencerService sequencerService = new SequencerService(repositoryName, props);
ServiceBuilder<JcrRepository> sequencerBuilder = target.addService(ModeShapeServiceNames.sequencerServiceName(repositoryName,
sequencerName),
sequencerService);
sequencerBuilder.addDependency(ModeShapeServiceNames.ENGINE,
ModeShapeEngine.class,
sequencerService.getModeShapeEngineInjector());
sequencerBuilder.addDependency(ModeShapeServiceNames.repositoryServiceName(repositoryName),
JcrRepository.class,
sequencerService.getJcrRepositoryInjector());
sequencerBuilder.setInitialMode(ServiceController.Mode.ACTIVE);
ServiceController<JcrRepository> controller = sequencerBuilder.install();
newControllers.add(controller);
}