@Override
    public Iterator<String> getFeatures() {
        Iterator<String> it = XMPPServer.getInstance().getPubSubModule().getFeatures(null, null, null);
        ArrayList<String> features = new ArrayList<>();
        while (it.hasNext()) {
            features.add(it.next());
        }
        // Auto Creation of nodes is supported in PEP
        features.add("http://jabber.org/protocol/pubsub#auto-create");
        features.add("http://jabber.org/protocol/pubsub#auto-subscribe");
        features.add("http://jabber.org/protocol/pubsub#filtered-notifications");
        return features.iterator();
    }
Implements ServerFeaturesProvider to include all supported XEP-0060 features
in the server's disco#info result (as per section 4 of XEP-0163).
xmppserver/src/main/java/org/jivesoftware/openfire/pep/IQPEPHandler.java