public final void sendResponse(Object value) {
        OperationResponseHandler responseHandler = getOperationResponseHandler();
        if (responseHandler == null) {
            if (value instanceof Throwable throwable) {
                // in case of a throwable, we want the stacktrace.
                getLogger().warning("Missing responseHandler for " + toString(), throwable);
            } else {
                getLogger().warning("Missing responseHandler for " + toString() + " value[" + value + "]");
            }
        } else {
            responseHandler.sendResponse(this, value);
        }
    }
@Test
    public void sendResponse_whenResponseHandlerIsNull_andThrowableValue_thenNoNPE() {
        Operation op = new DummyOperation();
        op.sendResponse(new Exception());
    }