+ if (wiring == null && bundle.getState() == Bundle.INSTALLED) {
+ LOGGER.info("Starting bundle {} with state {}", bundle.getSymbolicName(), BundleUtils.resolveBundleState(bundle));
+ try {
+ bundle.start();
+ } catch (BundleException e) {
+ throw new InternalCompilerError("Couldn't activate bundle " + bundle.getSymbolicName() + ". Bundle state is " + BundleUtils.resolveBundleState(bundle), e);
+ }
+ wiring = bundle.adapt(BundleWiring.class);
+ }
+ if (wiring != null)