@Override
    public Iterator<String> getFeatures(String name, String node, JID senderJID) {
        if (node == null) {
            PubSubModule pubsub = XMPPServer.getInstance().getPubSubModule();
            return pubsub.getFeatures(null, null, senderJID);
        } else {
            List<String> features = new LinkedList<>();
            features.add("http://jabber.org/protocol/pubsub");
            return features.iterator();
        }
    }
The following functions are unimplemented required interface methods.
xmppserver/src/main/java/org/jivesoftware/openfire/pep/IQPEPHandler.java