@Override
    public void deliver(final @Nonnull Packet stanza) throws UnauthorizedException, PacketException
    {
        if (stanza instanceof Message) {
            messageStrategy.storeOffline((Message) stanza);
        }
        else if (stanza instanceof Presence) {
            Log.trace("Silently dropping a presence stanza.");
        }
        else if (stanza instanceof IQ) {
            // IQ packets are logged before being dropped
            Log.warn(LocaleUtils.getLocalizedString("admin.error.routing") + "\n" + stanza);
        }
    }
Fallback method used by {@link org.jivesoftware.openfire.nio.NettyConnection} when a
connection fails to send a {@link Packet} (likely because it was closed). Message packets
will be stored offline for later retrieval. IQ and Presence packets are dropped.<p>

@author Tom Evans
xmppserver/src/main/java/org/jivesoftware/openfire/nio/OfflinePacketDeliverer.java