code: public URL copyWithProtocol(String protocol) {
          return new URL(protocol, this.adapterAddress, this.deviceAddress, this.deviceAttributes, this.serviceUUID,
                  this.characteristicUUID, this.fieldName);
      }
docs: Makes a copy of a given URL with some additional components.
  @param protocol protocol name
  @return a copy of a given URL with some additional components