@Override
    public String getUID() {
        if (uid == null) {
            synchronized(this) {
                if (uid == null) {
                    final StringBuilder sb = new StringBuilder(jid.toString());
                    if (name != null) {
                        sb.append(name);
                    }
                    if (node != null) {
                        sb.append(node);
                    }
                    if (action != null) {
                        sb.append(action);
                    }
                    uid = sb.toString();
                }
            }
        }
        return uid;
    }
Returns a dom4j element that represents this DiscoItem object.

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