int port = Integer.parseInt(authentication.getAttributeValueByName("port"));
String domain = authentication.getAttributeValueByName("domain");
String subDomain = authentication.getAttributeValueByName("subdomain");
try{
HttpAuthenticator authenticator = new HttpAuthenticator(server.getFileServer(),address,port,domain,subDomain);
service.setAuthenticator(authenticator);
}
catch(Exception e)
{
XappRootApplication.displayException(e);