@Override
  public CoapResponse createNotification(
      CoapRequest request, CoapResponseCode responseCode, int sequenceNumber, boolean reliable) {
    BasicCoapResponse response = null;
    CoapPacketType packetType;
    if (reliable) {
      packetType = CoapPacketType.CON;
    } else {
      packetType = CoapPacketType.NON;
    }

    response =
        new BasicCoapResponse(
            packetType, responseCode, channelManager.getNewMessageID(), request.getToken());
    response.setChannel(this);
    response.setObserveOption(sequenceNumber);
    return response;
  }