// Create the list of {@link Deployment}s for the configured modules
List<Deployment> deployments = new ArrayList<Deployment>();
BundleDeploymentPlugin depPlugin = bundleManager.getPlugin(BundleDeploymentPlugin.class);
for (OSGiModule module : injectedConfig.getValue().getModules()) {
ModuleIdentifier identifier = module.getIdentifier();
Deployment dep = depPlugin.createDeployment(identifier);
dep.setAutoStart(module.isStart());
deployments.add(dep);
}
// Deploy the bundles through the {@link DeployerService}