public boolean isRootCollectionNode() {
        return getService().getRootCollectionNode() == this;
    }
Returns true if this node is the root node of the pubsub service.

@return true if this node is the root node of the pubsub service.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/Node.java