public static <S extends Packet> S createCopyWithoutFMUC( S stanza )
    {
        final S result = (S) stanza.createCopy();
        final Iterator<Element> elementIterator = result.getElement().elementIterator(FMUC);
        while (elementIterator.hasNext()) {
            elementIterator.next();
            elementIterator.remove();
        }
        return result;
    }
Removes FMUC child elements from the stanza, if such an element exists.

This method provides the functionally opposite implementation of {@link #enrichWithFMUCElement(Packet, MUCOccupant)}.

@param stanza The stanza from which an FMUC child element is to be removed.
@param <S> Type of stanza
@return A copy of the stanza, without FMUC child element.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/spi/FMUCHandler.java