@Override
    public boolean equals(Object obj) {
        return obj instanceof DiscoItem && getUID().equals(((DiscoItem)obj).getUID());
    }
Returns a dom4j element that represents this DiscoItem object.

@return element representing this object.
xmppserver/src/main/java/org/jivesoftware/openfire/disco/DiscoItem.java