Bundle[] bundles = context.getBundles();
for ( Bundle bundle : bundles ) {
if ( bundle.getSymbolicName().equals( OSGIUtil.BUNDLE_HTTP_BRIDGE_SYMBOLIC_NAME ) ) {
//If we are here is because we have an invalid bundle context, so we need to provide a new one
BundleContext httpBundle = bundle.getBundleContext();
OSGIProxyServlet.tracker = new DispatcherTracker( httpBundle, null, OSGIProxyServlet.servletConfig );
OSGIProxyServlet.tracker.open();
OSGIProxyServlet.bundleContext = httpBundle;
}
}