code: private void createManagedServiceFactory(BundleContext context) {
  		// sanity check
  		if (managedServiceFactoryReg != null) {
  			managedServiceFactoryReg.unregister();
  			managedServiceFactoryReg = null;
  		}
  		final Dictionary<String, String> props = new Hashtable<>();
  		props.put(Constants.SERVICE_PID, HttpContextProcessing.PID);
  		httpContextProcessing = new HttpContextProcessing(bundleContext, serverController);
  		managedServiceFactoryReg = context.registerService(ManagedServiceFactory.class, httpContextProcessing, props);
  	}
docs: Registers a managed service factory to create {@link org.osgi.service.http.HttpContext} <em>processors</em>
  - these will possibly register additional web items (like login configurations or filters) for shared or
  per-bundle http services.
  
  @param context