@Nonnull
        public Collection<Packet> getPackets() {
            final List<Packet> packets = new ArrayList<>();
            for (final Deliverable deliverable : deliverables) {
                // TODO this ignores the 'text' element in deliverable. Is that something that we need to worry about? It is generally used to transmit stream-level data, which might not be applicable here.
                final List<Packet> toDeliver = deliverable.getPackets();
                if (toDeliver != null) {
                    packets.addAll(toDeliver);
                }
            }
            return packets;
        }
A representation of data that have previously been delivered back to the client.
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpSession.java