Buggy code:
class BootstrapBundlesIntegration extends BootstrapBundlesInstall < Void > { private final InjectedValue < BundleManager > injectedBundleManager = new InjectedValue < BundleManager > ( ) ; private final InjectedValue < BundleStorage > injectedStorageProvider = new InjectedValue < BundleStorage > ( ) ; private final InjectedValue < ServerEnvironment > injectedServerEnvironment = new InjectedValue < ServerEnvironment > ( ) ; private final InjectedValue < BundleContext > injectedSystemContext = new InjectedValue < BundleContext > ( ) ; private final InjectedValue < SubsystemState > injectedSubsystemState = new InjectedValue < SubsystemState > ( ) ; private final InjectedValue < XEnvironment > injectedEnvironment = new InjectedValue < XEnvironment > ( ) ; private final InjectedValue < XRepository > injectedRepository = new InjectedValue < XRepository > ( ) ; private List < OSGiCapability > modulecaps ; private List < File > bundlesPath ; BootstrapBundlesIntegration ( ) { } @ Override protected void addServiceDependencies ( ServiceBuilder < Void > builder ) { super . addServiceDependencies ( builder ) ; builder . addDependency ( SERVICE_NAME , ServerEnvironment . class , injectedServerEnvironment ) ; builder . addDependency ( SUBSYSTEM_STATE_SERVICE_NAME , SubsystemState . class , injectedSubsystemState ) ; builder . addDependency ( REPOSITORY_SERVICE_NAME , XRepository . class , injectedRepository ) ; builder . addDependency ( BUNDLE_MANAGER , BundleManager . class , injectedBundleManager ) ; <START_BUG> builder . addDependency ( BUNDLE_STORAGE , BundleStorage . class , injectedStorageProvider ) ; <END_BUG> builder . addDependency ( FRAMEWORK_CREATE , BundleContext . class , injectedSystemContext ) ; builder . addDependency ( ENVIRONMENT , XEnvironment . class , injectedEnvironment ) ; } @ Override public synchronized void start ( StartContext context ) throws StartException { } @ Override protected ServiceController < Void > installResolveService ( ServiceTarget serviceTarget , Set < ServiceName > installedServices ) { } private boolean installInitialModuleCapability ( OSGiCapability configcap ) throws Exception { } private Deployment getInitialBundleDeployment ( OSGiCapability configcap ) throws Exception { } private boolean isValidModuleIdentifier ( String identifier ) { } private boolean isValidMavenIdentifier ( String identifier ) { } private Deployment getDeploymentFromURL ( URL bundleURL , String location , Integer level ) throws Exception { } private OSGiMetaData getModuleMetadata ( Module module ) throws IOException { } class BootstrapResolveIntegration extends BootstrapBundlesResolve < Void > { BootstrapResolveIntegration ( ServiceName baseName , Set < ServiceName > installedServices ) { } @ Override protected ServiceController < Void > installActivateService ( ServiceTarget serviceTarget , Set < ServiceName > resolvedServices ) { } } class BootstrapActivateIntegration extends BootstrapBundlesActivate < Void > { BootstrapActivateIntegration ( ServiceName baseName , Set < ServiceName > installedServices ) { } @ Override public void start ( StartContext context ) throws StartException { } } }

Fix:
builder . addDependency ( BUNDLE_STORAGE_PLUGIN , BundleStorage . class , injectedStorageProvider ) ;