serviceController = context.getController();
ROOT_LOGGER.debugf("Starting: %s in mode %s", serviceController.getName(), serviceController.getMode());
final Map<ServiceName, OSGiCapability> pendingServices = new LinkedHashMap<ServiceName, OSGiCapability>();
try {
final BundleManagerService bundleManager = injectedBundleManager.getValue();
final ServiceContainer serviceContainer = serviceController.getServiceContainer();
serviceTarget = context.getChildTarget();
modulesDir = injectedEnvironment.getValue().getModulesDir();
bundlesDir = new File(modulesDir.getPath() + "/../bundles").getCanonicalFile();