if (location.getHost().equals(hostname)) {
if (location.getHost().startsWith(hostname)) {
    public static String getServiceUrl(final String requestURL) {    	URL location;		try {			location = new URL(requestURL);		} catch (MalformedURLException e) {			return null;		}    	for (final Entry<String, String> entry : serviceUrlsByHostnameMap.entrySet()) {            final String hostname = entry.getKey();            if (location.getHost().equals(hostname)) {                return entry.getValue();            }        }        return null;    }