private void installContentHandlerFactory(BundleContext context) { ContentHandlerFactory chf = new ContentHandlerFactory(context);
private void installContentHandlerFactory(BundleContext context, FrameworkAdaptor frameworkAdaptor) { ContentHandlerFactory chf = new ContentHandlerFactory(context, frameworkAdaptor);
	private void installContentHandlerFactory(BundleContext context) {		ContentHandlerFactory chf = new ContentHandlerFactory(context);		try {			// first try the standard way			URLConnection.setContentHandlerFactory(chf);		} catch (Error err) {			// ok we failed now use more drastic means to set the factory			try {				forceContentHandlerFactory(chf);			} catch (Exception ex) {				// this is unexpected, log the exception and throw the original error				adaptor.getFrameworkLog().log(new FrameworkEvent(FrameworkEvent.ERROR, context.getBundle(), ex));				throw err;			}		}	}