code: public static boolean isRegistered(URI uri) {
  
  		if (uri == null) {
  			throw new IllegalArgumentException("Camera device URI cannot be null");
  		}
  
  		for (IpCamDevice d : DEVICES) {
  
  			// URL.euals() method is broken and thus we shall not depend on
  			// it, the best w/a is to use URI instead
  
  			try {
  				if (d.getURL().toURI().equals(uri)) {
  					return true;
  				}
  			} catch (URISyntaxException e) {
  				throw new WebcamException(e);
  			}
  		}
  
  		return false;
  	}
docs: Is device with given URL registered?
  
  @param uri the URI used by device
  @return True if device is registered, false otherwise