@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        final SessionKey other = (SessionKey) obj;
        if (peerAddress == null) {
            if (other.peerAddress != null)
                return false;
        }
        else if (!peerAddress.equals(other.peerAddress))
            return false;
        if (sessionKey == null) {
            if (other.sessionKey != null)
                return false;
        }
        else if (!sessionKey.equals(other.sessionKey))
            return false;
        return true;
    }