public void start(BundleContext bundleContext) throws Exception {
ServletContext servletContext = (ServletContext)
getService(bundleContext, ServletContext.class);
FrameworkManager manager = (FrameworkManager)
getService(bundleContext, FrameworkManager.class);
ServletRegistry registry = new ServletRegistry(servletContext);
// Create the bridge.
HttpBridgeService bridge = new HttpBridgeService(registry);
// Register the bridge using the manager so that it can
// be accessed from outside the OSGi framework.
bridgeRegistration = manager.registerExportedBridgeService(
HttpBridge.class,
bridge, null);
serviceRegistration = bundleContext.registerService(
HttpService.class.getName(),