logger.severe("Error: "+(siteDNsForHostname==null?"null":String.valueOf(siteDNsForHostname.size()))+" entries across all sites for the hostname: "+hostName);
returnnull;
}
// users won't be always in a registered domain so we can exit here
if(siteset.size()==0){
if(checkContent)
returnnull;
returnconfiguration;
}
HashMap<String,Object>hostConfig=null;
Stringsite=null;
// siteset might contain more than one site. Let's see if one of them matches the given hostname
while(siteset.iterator().hasNext()){
site=siteset.iterator().next();
// siteDNsForHostname might contain more than one site. Let's see if one of the them has the configuration