public long getUniqueId() {
    long uniqueId;

    if (communicationMode.isWAN()) {
      uniqueId = userAuthId;
    } else if (requestMessage.isSecureMode()) {
      uniqueId = messageIdExtractor.getUniqueIdFromMessage(requestMessage,
          handshake.getEncryptor(), connectionId);
    } else {
      throw new AuthenticationRequiredException("No security credentials are provided");
    }
    return uniqueId;
  }
@return The QueryResponseMessage associated with the ServerConnection
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/ServerConnection.java