this.urlStreamServiceReference = reference; this.ranking = rank; this.realHandlerService = (URLStreamHandlerService) StreamHandlerFactory.secureAction.getService(reference, context);
if (urlStreamServiceReference != null) context.ungetService(urlStreamServiceReference);  urlStreamServiceReference = reference; ranking = rank;  if (reference == null) realHandlerService = new NullURLStreamHandlerService(); else realHandlerService = (URLStreamHandlerService) StreamHandlerFactory.secureAction.getService(reference, context);
	private void setNewHandler(ServiceReference reference, int rank) {		this.urlStreamServiceReference = reference;		this.ranking = rank;		this.realHandlerService = (URLStreamHandlerService) StreamHandlerFactory.secureAction.getService(reference, context);	}