private String getPropfileName(String domain, String subdomain, ArrayList<HashMap<String, String>> domainsMaps) {
		boolean applyDefault = false;
		for (int i = 0; i < domainsMaps.size(); i++) {
			HashMap<String, String> domainsMap = domainsMaps.get(i);
			if (domainsMap.get("domain").equalsIgnoreCase(domain) && domainsMap.get("subdomain").equalsIgnoreCase(subdomain)) 
				return domainsMap.get("propfile");
			else if (!applyDefault && (domainsMap.get("domain").equalsIgnoreCase(subdomain + "." + domain)))
				applyDefault = true;
		}
		if (applyDefault) {
			log.warn("default.properties will be applied.");
			return "default";
		} else {
			log.error("domain is not a suitable.");
			return null;
		}
	}