private Element getAddresses(Packet packet) {
        if (packet instanceof IQ) {
            return ((IQ) packet).getChildElement().element("addresses");
        }
        else {
            return packet.getElement().element("addresses");
        }
    }
Returns the Element that contains the multiple recipients.

@param packet packet containing the multiple recipients.
@return the Element that contains the multiple recipients.
xmppserver/src/main/java/org/jivesoftware/openfire/MulticastRouter.java