code: public URL copyWithDevice(String deviceAddress, String attrName, String attrValue) {
          return new URL(this.protocol, this.adapterAddress, deviceAddress, Collections.singletonMap(attrName, attrValue),
                  this.serviceUUID, this.characteristicUUID, this.fieldName);
      }
docs: Makes a copy of a given URL with a new device name and a single attribute.
  @param deviceAddress bluetooth device MAC address
  @param attrName attribute name
  @param attrValue attribute value
  @return a copy of a given URL with some additional components