@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        MUCOccupant other = (MUCOccupant) obj;
        if (nick == null) {
            if (other.nick != null)
                return false;
        } else if (!nick.equals(other.nick))
            return false;
        if (occupantJID == null) {
            if (other.occupantJID != null)
                return false;
        } else if (!occupantJID.equals(other.occupantJID))
            return false;
        if (roomJid == null) {
            if (other.roomJid != null)
                return false;
        } else if (!roomJid.equals(other.roomJid))
            return false;
        if (userJid == null) {
            if (other.userJid != null)
                return false;
        } else if (!userJid.equals(other.userJid))
            return false;
        return true;
    }
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