protected Object attemptReadResponse(final @NotNull Connection cnx) throws Exception {
    final Message msg = createResponseMessage();
    msg.setComms(cnx.getSocket(), cnx.getInputStream(), cnx.getOutputStream(),
        cnx.getCommBuffer(), cnx.getStats());
    if (msg instanceof ChunkedMessage) {
      try {
        return processResponse(msg, cnx);
      } finally {
        msg.unsetComms();
        processSecureBytes(cnx, msg);
      }
    } else {
      try {
        msg.receive();
      } finally {
        msg.unsetComms();
        processSecureBytes(cnx, msg);
      }
      return processResponse(msg, cnx);
    }
  }
Attempts to read a response to this operation by reading it from the given connection, and
returning it.

@param cnx the connection to read the response from
@return the result of the operation or <code>null</code> if the operation has no result.
@throws Exception if the execute failed
geode-core/src/main/java/org/apache/geode/cache/client/internal/AbstractOp.java