class UnknownDeviceMqttClientSession implements DeviceSession {
    @Getter
    private final String id;

    private final MqttClient client;

    private final DeviceGatewayMonitor monitor;
    private Duration keepAliveTimeout;

    public UnknownDeviceMqttClientSession(String id,
                                          MqttClient client,
                                          DeviceGatewayMonitor monitor) {
        this.id = id;
        this.client = client;
        this.monitor=monitor;
    }

    @Override
    public String getDeviceId() {
        return null;
    }

    @Override
    public DeviceOperator getOperator() {
        return null;
    }

    @Override
    public long lastPingTime() {
        return 0;
    }

    @Override
    public long connectTime() {
        return 0;
    }

    @Override
    public void setKeepAliveTimeout(Duration keepAliveTimeout) {
        this.keepAliveTimeout = keepAliveTimeout;
    }

    @Override
    public Duration getKeepAliveTimeout() {
        return keepAliveTimeout;
    }

    @Override
    public Mono<Boolean> send(EncodedMessage encodedMessage) {<FILL_FUNCTION_BODY>}

    @Override
    public Transport getTransport() {
        return DefaultTransport.MQTT;
    }

    @Override
    public void close() {

    }

    @Override
    public void ping() {

    }

    @Override
    public boolean isAlive() {
        return client.isAlive();
    }

    @Override
    public void onClose(Runnable call) {

    }
}

        if (encodedMessage instanceof MqttMessage) {
            return client
                .publish(((MqttMessage) encodedMessage))
                .doOnSuccess(ignore->monitor.sentMessage())
                .thenReturn(true);
        }
        return Mono.error(new UnsupportedOperationException("unsupported message type:" + encodedMessage.getClass()));
    
<no_super_class>