code: @Deprecated
      public String registerDeviceWithId(String deviceId, String deviceName)
          throws ApiException, IOException {
          final Device d = new Device.Builder(projectId).id(deviceId).name(deviceName).build();
          return registerDevice(d);
      }
docs: Registers a device with the provided device ID and device name. This call is <b>BLOCKING</b>
  and should not be called on UI threads.
  
  See {@link #registerDevice(Device)} for more details.
  
  @param deviceId   The desired id for this device; if null, a random one is assigned.
  @param deviceName The desired name for this device; if null, a random one is assigned.
  @return The new device id for this device.
  @throws ApiException Thrown if the iobeam client is not initialized or there are problems
  writing the device ID.
  @throws IOException  Thrown if network errors occur while trying to register.
  @deprecated Use {@link #registerDevice(Device)} instead. Will be removed after 0.6.x