for (OSGiCapability modcap : modulecaps) {
if (modcap.getStartLevel() != null) {
String identifier = modcap.getIdentifier();
XBundle bundle = bundleManager.getBundleByLocation(identifier);
try {
bundle.start(Bundle.START_ACTIVATION_POLICY);
} catch (BundleException ex) {
LOGGER.errorCannotStartBundle(ex, bundle);
}
}
}