code: public static IpCamDevice register(IpCamDevice ipcam) {
  
  		for (WebcamDevice d : DEVICES) {
  			String name = ipcam.getName();
  			if (d.getName().equals(name)) {
  				throw new WebcamException(String.format("Webcam with name '%s' is already registered", name));
  			}
  		}
  
  		DEVICES.add(ipcam);
  
  		rescan();
  
  		return ipcam;
  	}
docs: Register IP camera.
  
  @param ipcam the IP camera to be register
  @return IP camera device