@Override
    public void initialize(XMPPServer server) {
        super.initialize(server);
        messageStore = server.getOfflineMessageStore();
        router = server.getPacketRouter();
        serverAddress = new JID(server.getServerInfo().getXMPPDomain());

        JiveGlobals.migrateProperty("xmpp.offline.quota");
        JiveGlobals.migrateProperty("xmpp.offline.type");

        String quota = JiveGlobals.getProperty("xmpp.offline.quota");
        if (quota != null && !quota.isEmpty()) {
            OfflineMessageStrategy.quota = Integer.parseInt(quota);
        }
        String type = JiveGlobals.getProperty("xmpp.offline.type");
        if (type != null && !type.isEmpty()) {
            OfflineMessageStrategy.type = Type.valueOf(type);
        }
    }
Unregisters a listener to receive events.

@param listener the listener.
xmppserver/src/main/java/org/jivesoftware/openfire/OfflineMessageStrategy.java