if(TiledConfiguration.getInstance().keyHasValue("tmx.load.report",1)) { Iterator itr = warnings.iterator(); while(itr.hasNext()) { String warn = (String) itr.next(); System.out.println(warn); } }
    public Map readMap(String filename) throws Exception {        String xmlFile = filename;                xmlPath = filename.substring(0,                filename.lastIndexOf(File.separatorChar) + 1);        if (xmlFile.indexOf("://") == -1) {            xmlFile = (new java.io.File(xmlFile)).toURL().toString();            xmlPath = (new java.io.File(xmlPath)).toURL().toString();        }        URL url = new URL(xmlFile);        Map unmarshalledMap = unmarshal(url.openStream());        unmarshalledMap.setFilename(filename);                //TODO: put this is a popup window        if(TiledConfiguration.getInstance().keyHasValue("tmx.load.report",1)) {	        Iterator itr = warnings.iterator();	        while(itr.hasNext()) {	            String warn = (String) itr.next();	            System.out.println(warn);	        }        }                return unmarshalledMap;    }