props.put(key, node.asString());
}
}
ensureClassLoadingPropertyIsSet(props);
SourceService sourceService = new SourceService(repositoryName, props);
ServiceBuilder<JcrRepository> sourceServiceBuilder = target.addService(ModeShapeServiceNames.sourceServiceName(
repositoryName,
sourceName), sourceService);
sourceServiceBuilder.addDependency(ModeShapeServiceNames.ENGINE,
ModeShapeEngine.class,
sourceService.getModeShapeEngineInjector());
sourceServiceBuilder.addDependency(ModeShapeServiceNames.repositoryServiceName(repositoryName),
JcrRepository.class,
sourceService.getJcrRepositoryInjector());
sourceServiceBuilder.setInitialMode(ServiceController.Mode.ACTIVE);
ServiceController<JcrRepository> controller = sourceServiceBuilder.install();
newControllers.add(controller);
}