}
final DynamicExtensionsApplicationContext applicationContext = new DynamicExtensionsApplicationContext(
configurationLocations, getHostApplicationContext(bundleContext));
applicationContext.setBundleContext(bundleContext);
final DefaultContextClassLoaderProvider contextClassLoaderProvider = new DefaultContextClassLoaderProvider();
contextClassLoaderProvider.setBeanClassLoader(ApplicationContext.class.getClassLoader());
applicationContext.setContextClassLoaderProvider(contextClassLoaderProvider);
applicationContext.setPublishContextAsService(config.isPublishContextAsService());
return applicationContext;