Object property = reference.getProperty(Constants.SERVICE_RANKING); ranking = (property instanceof Integer) ? ((Integer) property).intValue() : 0;  this.realHandlerService = (URLStreamHandlerService) context.getService(reference); this.urlStreamServiceReference = reference;
setNewHandler(reference, getRank(reference));
	public URLStreamHandlerProxy(String protocol, ServiceReference reference, BundleContext context) {		handlerRegistered = true;		this.context = context;		this.protocol = protocol;		urlSetter = new URLStreamHandlerSetter(this);		//set the ranking		Object property = reference.getProperty(Constants.SERVICE_RANKING);		ranking = (property instanceof Integer) ? ((Integer) property).intValue() : 0;		this.realHandlerService = (URLStreamHandlerService) context.getService(reference);		this.urlStreamServiceReference = reference;		urlStreamHandlerServiceTracker = new ServiceTracker(context, StreamHandlerFactory.URLSTREAMHANDLERCLASS, this);		urlStreamHandlerServiceTracker.open();	}