public LeafNode getNode() {
        if (node == null) {
            synchronized (this) {
                if (node == null) {
                    if (XMPPServer.getInstance().getPubSubModule().getServiceID().equals(serviceId))
                    {
                        node = (LeafNode) XMPPServer.getInstance().getPubSubModule().getNode(nodeId);
                    }
                    else
                    {
                        PEPServiceManager serviceMgr = XMPPServer.getInstance().getIQPEPHandler().getServiceManager();
                        JID service = new JID( serviceId );
                        node = serviceMgr.hasCachedService(service) ? (LeafNode) serviceMgr.getPEPService(service).getNode(nodeId) : null;
                    }
                }
            }
        }
        return node;
    }
Returns the {@link LeafNode} where this item was published.

@return the leaf node where this item was published.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/PublishedItem.java