@Override
    protected void createSession(XmlPullParser xpp) throws XmlPullParserException, IOException {
        for (int eventType = xpp.getEventType(); eventType != XmlPullParser.START_TAG;) {
            eventType = xpp.next();
        }
        this.domainPair = new DomainPair(XMPPServer.getInstance().getServerInfo().getXMPPDomain(), xpp.getAttributeValue("", "from"));
        super.createSession(xpp);
    }
Controls if JIDs that are in the addresses of stanzas supplied by remote domains are validated.
xmppserver/src/main/java/org/jivesoftware/openfire/net/ServerStanzaHandler.java