private synchronized void processDialback(Element inbound) throws IOException
        {
            allowableSocketTimeouts = 10;

            if (disableDialback) {
                final Document outbound = DocumentHelper.createDocument();
                final Namespace namespace = new Namespace("stream", "http://etherx.jabber.org/streams");
                final Element root = outbound.addElement(QName.get("stream", namespace));
                root.add(Namespace.get("jabber:server"));
                final Element error = root.addElement(QName.get("error", "stream", "http://etherx.jabber.org/streams"));
                error.addElement(QName.get("unsupported-stanza-type", "urn:ietf:params:xml:ns:xmpp-streams"));

                send(root.asXML().substring(root.asXML().indexOf(">")+1));
                throw new InterruptedIOException("Dialback received while feature is disabled. Kill the connection");
            }

            if (encryptionPolicy == Connection.TLSPolicy.required && !(socket instanceof SSLSocket)) {
                final Document outbound = DocumentHelper.createDocument();
                final Element result = outbound.addElement(QName.get("result", "db", "jabber:server:dialback"));
                result.addAttribute("from", XMPP_DOMAIN);
                result.addAttribute("to", inbound.attributeValue("from", null));
                result.addAttribute("type", "error");
                final Element error = result.addElement("error");
                error.addAttribute("type", "cancel");
                error.addElement("policy-violation", "urn:ietf:params:xml:ns:xmpp-stanzas");

                send(outbound.getRootElement().asXML());
                return; // spec says to not kill the connection.
            }

            if (inbound.getTextTrim().isEmpty()) {
                throw new IllegalStateException("Not supporting processing anything but an initial dialback key submission.");
            }

            // Skip the check with an Authoritative Server (which is what Dialback _should_ do). Simply report a faked validation result.
            final Document outbound = DocumentHelper.createDocument();
            final Element result = outbound.addElement(QName.get("result", "db", "jabber:server:dialback"));
            result.addAttribute("from", XMPP_DOMAIN);
            result.addAttribute("to", inbound.attributeValue("from", null));
            result.addAttribute("type", "valid");

            send(outbound.getRootElement().asXML());
        }
Responds to a Dialback request with a Dialback result indicating that authentication succeeded.

Proper Dialback should first verify with an Authoritive Server from the remote domain. This method skips that,
and authenticates blindly.

@param inbound The Dialback request to authenticate.
xmppserver/src/test/java/org/jivesoftware/openfire/session/RemoteReceivingServerDummy.java