@VisibleForTesting
  byte[] getUniqueIdBytes(Message message, long existingUniqueId) {
    try {
      // create secure part which will be sent in response
      return encryptId(getUniqueId(message, existingUniqueId));
    } catch (AuthenticationFailedException | AuthenticationRequiredException | CacheClosedException
        | AuthenticationExpiredException exception) {
      throw exception;
    } catch (Exception exception) {
      throw new AuthenticationFailedException("REPLY_REFUSED", exception);
    }
  }
@return whether this is a connection to a client, regardless of protocol.
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/ServerConnection.java