public Collection<NodeSubscription> getPendingSubscriptions() {
        Collection<NodeSubscription> result = Collections.emptyList();
        if (accessModel.isAuthorizationRequired()) {
            List<NodeSubscription> pendingSubscriptions = new ArrayList<>();
            for (NodeSubscription subscription : subscriptionsByID.values()) {
                if (subscription.isAuthorizationPending()) {
                    pendingSubscriptions.add(subscription);
                }
            }
            result = pendingSubscriptions;
        }

        getLogger().trace("Got {} pending subscription(s).", result.size());
        return result;
    }
Returns a list with the subscriptions to the node that are pending to be approved by
a node owner. If the node is not using the access model
{@link org.jivesoftware.openfire.pubsub.models.AuthorizeAccess} then the result will
be an empty collection.

@return a list with the subscriptions to the node that are pending to be approved by
        a node owner.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/Node.java