urls = (ArrayList)urlMap.get(domain);
ArrayList urls = (ArrayList)urlMap.get(domain);
    public static String[] lookup(String username)    throws BackendException, ConfigurationException {        log.finer("lookup(String)");        		ArrayList urls = new ArrayList();                // Initialize the hash map, if we haven't already.        synchronized (initialized) {            if (!initialized.booleanValue()) {            	                // Create hashtable of domain names to LDAP URLs.                String domain, url;                for (int i=1; ; i++) {                    domain = Configuration.getProperty("no.feide.moria.backend.ldap"+i+".domain");                    if (domain == null)                        break;  // No more domains.                    for (int j = 1; ; j++) {                    	url = Configuration.getProperty("no.feide.moria.backend.ldap"+i+".url"+j);                    	if (url == null)                    		break;  // No more URLs for this domain.                    	urls.add(url);						log.config(domain+" mapped to "+url);                    }                                        // Sanity check.                    if (urls.size() == 0) {                    	log.config("Backend index is empty for domain "+domain);                    	throw new ConfigurationException("Backend index is empty for domain "+domain);                    }                                        urlMap.put(domain, urls);                    urls.clear();                }                            }        }                // Map user ID domain to LDAP URL using the username suffix.        String domain = username;        if (domain.indexOf('@') == -1) {            log.severe("Illegal user identifier; missing @: "+domain);            throw new BackendException("Illegal user identifier; missing @: "+domain);        }         domain = domain.substring(domain.indexOf('@')+1);        urls = (ArrayList)urlMap.get(domain);                // Sanity check.        if (urls == null) {        	log.config("No URLs for domain "+domain);        	throw new ConfigurationException("No URLs for domain "+domain);        }                log.info("Matched domain "+domain+" to LDAP URLs "+urls.toString());        String[] urlArray = (String[])urls.toArray(new String[] {});         return urlArray;            }