logger.debug("Added new map: \n" + filename);
if (logger.isDebugEnabled()) logger.debug("Added new map: \n" + filename);
    public static Hashtable loadMap(ConfigFinder configFinder, String filename) {                //First see if we already have loaded the requested map. If so, just return it.        if ( dom != null ) {            Hashtable m = (Hashtable) maps.get(filename);            if (m != null) { return m; }        }                //do once        synchronized(SYNCH) {            if (dom == null) {                dom = new DOMifier(configFinder);            }        }                        Document doc;        Element root = null;                try {                        doc = dom.parseFile(filename);            //Call subclass to process the dom tree             root = doc.getDocumentElement();            if (root == null) {                logger.error("Error parsing XML map file [" + filename + "]. Root element was null.");                return null;            }        } catch (Exception e) {            logger.error("Error parsing XML map file [" + filename + "]. Error was: "+ e.toString(), e);            return null;        }                        Hashtable map = processMap(root, filename);        maps.put(filename, map);        logger.debug("Added new map: \n" + filename);        return map;    }