public int getMaxPublishedItems() {
        return maxPublishedItems;
    }
Returns the maximum number of published items to persist. Note that all nodes are going
to persist their published items. The only difference is the number of the last published
items to be persisted. Even nodes that are configured to not use persistent items are going
to save the last published item.

@return the maximum number of published items to persist.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/DefaultNodeConfiguration.java