private void sendError(PacketError error) {
        final Element failed = DocumentHelper.createElement(QName.get("failed", namespace));
        failed.addElement(QName.get(error.getCondition().toXMPP(), "urn:ietf:params:xml:ns:xmpp-stanzas"));
        session.deliverRawText(failed.asXML());
        this.namespace = null; // isEnabled() is testing this.
    }
Send a generic failed error.

@param error PacketError describing the failure.
xmppserver/src/main/java/org/jivesoftware/openfire/streammanagement/StreamManager.java