docs: static void sendResponse(final ManagementRequestContext<ExecuteRequestContext> context, final byte responseType, final ModelNode response) throws IOException {
  
          // WFLY-3090 Protect the communication channel from getting closed due to administrative
          // cancellation of the management op by using a separate thread to send
          final CountDownLatch latch = new CountDownLatch(1);
          final IOExceptionHolder exceptionHolder = new IOExceptionHolder();
          boolean accepted = context.executeAsync(new AsyncTask<TransactionalProtocolOperationHandler.ExecuteRequestContext>() {
  
              @Override
              public void execute(final ManagementRequestContext<ExecuteRequestContext> context) throws Exception {
                  FlushableDataOutput output = null;
                  try {
                      MGMT_OP_LOGGER.tracef("Transmitting response for %d", context.getOperationId());
                      final ManagementResponseHeader header = ManagementResponseHeader.create(context.getRequestHeader());
                      output = context.writeMessage(header);
                      // response type
                      output.writeByte(responseType);
                      // operation result
                      response.writeExternal(output);
                      // response end
                      output.writeByte(ManagementProtocol.RESPONSE_END);
                      output.close();
                  } catch (IOException toCache) {
                      exceptionHolder.exception = toCache;
                  } finally {
                      StreamUtils.safeClose(output);
                      latch.countDown();
                  }
              }
          }, false);
          if (accepted) {
              try {
                  latch.await();
              } catch (InterruptedException e) {
                  Thread.currentThread().interrupt();
              }
              if (exceptionHolder.exception != null) {
                  throw exceptionHolder.exception;
              }
          }
      }