@Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((nick == null) ? 0 : nick.hashCode());
        result = prime * result + ((occupantJID == null) ? 0 : occupantJID.hashCode());
        result = prime * result + ((roomJid == null) ? 0 : roomJid.hashCode());
        result = prime * result + ((userJid == null) ? 0 : userJid.hashCode());
        return result;
    }
Calculates and sets the extended presence information to add to the presence.
The information to add contains the user's jid, affiliation and role.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCOccupant.java