class MAMModule extends DefaultDiscoAwareModule implements ServerInfoRequestListener {

    @Override
    public List<InfoElement> getServerInfosFor(InfoRequest request) {
        List<InfoElement> infoElements = new ArrayList<>();
        infoElements.add(new Feature(NamespaceURIs.XEP0359_STANZA_IDS));
        infoElements.add(new Feature(NamespaceURIs.JABBER_X_DATA));
        return infoElements;
    }

}