Hashtable<String, Object> props = new Hashtable<String, Object>();
props.put("url.handler.protocol", "feature");
FeatureURLHandler handler = new FeatureURLHandler();
register(URLStreamHandlerService.class, handler, props);
listener = new FeatureDeploymentListener();
listener.setFeaturesService(service);
listener.setBundleContext(bundleContext);
listener.init();
register(new Class[] { ArtifactUrlTransformer.class, ArtifactListener.class },
listener);