public JID createJID(String username, String resource) {
        return new JID(username, xmppServerInfo.getXMPPDomain(), resource);
    }
Creates an XMPPAddress local to this server.

@param username the user name portion of the id or null to indicate none is needed.
@param resource the resource portion of the id or null to indicate none is needed.
@return an XMPPAddress for the server.
xmppserver/src/main/java/org/jivesoftware/openfire/XMPPServer.java