code: public void sendSyncModeCommand(int deviceNumber, boolean synced) throws IOException {
          final DeviceUpdate update = getLatestStatusFor(deviceNumber);
          if (update == null) {
              throw new IllegalArgumentException("Device " + deviceNumber + " not found on network.");
          }
          sendSyncModeCommand(update, synced);
      }
docs: Tell a device to turn sync on or off.
  
  @param deviceNumber the device whose sync state is to be set
  @param synced {@code} true if sync should be turned on, else it will be turned off
  
  @throws IOException if there is a problem sending the command to the device
  @throws IllegalStateException if the {@code VirtualCdj} is not active
  @throws IllegalArgumentException if {@code deviceNumber} is not found on the network