public void removeComponentItem(String jid) {
        if (serverItems == null) {
            // Safety check
            return;
        }
        Lock lock = serverItems.getLock(jid);
        lock.lock();
        try {
            ClusteredServerItem item = serverItems.get(jid);
            if (item != null && item.nodes.remove(XMPPServer.getInstance().getNodeID())) {
                // Update the cache with latest info
                if (item.nodes.isEmpty()) {
                    serverItems.remove(jid);
                }
                else {
                    serverItems.put(jid, item);
                }
            }
        }
        finally {
            lock.unlock();
        }
        // Remove locally added server item
        localServerItems.remove(jid);
    }
Removes a disco item for a component that has been removed from the server.

@param jid the jid of the component being removed.
xmppserver/src/main/java/org/jivesoftware/openfire/disco/IQDiscoItemsHandler.java