default PublishedItem getLastPublishedItem(LeafNode node) {
        final List<PublishedItem> items = getPublishedItems(node, 1);
        if (items.isEmpty()) {
            return null;
        } else {
            return items.get(0);
        }
    }
Fetches the last published item (by creation date) for the specified node.

@param node the leaf node to load its last published items.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/PubSubPersistenceProvider.java