}else if(XMPPConstants.XMPP_DOMAIN_NAME.equals(param.getName())){
serverCredentials.setDomainName((String)param.getValue());
}
}
XMPPConnectionFactory xmppConnectionFactory = new XMPPConnectionFactory();
xmppConnectionFactory.connect(serverCredentials);
connectionFactories.put(serverCredentials.getAccountName() + "@"
+ serverCredentials.getServerUrl(), xmppConnectionFactory);
}
}