public boolean loadTmx(String filename) throws InterruptedException, STiledLevelException {
   this.filename = filename;
   map = _loadAssetsRoutine(this.filename);
   if (map != null) {
     levelRenderer = new OrthogonalTiledMapRenderer(map, 1);
     _loadSpecialTilesRoutine(map);
     _loadLayersRoutine(map);
     _loadObjectsRoutine(objectLayer);
     loaded = true;
     if (listener != null) {
       listener.tiledMapLoaded(this);
     }
   }
   return getLoaded();
 }
 public boolean loadTiledMap(TiledMap map) throws STiledLevelException {
   this.map = map;
   levelRenderer = new OrthogonalTiledMapRenderer(this.map, 1);
   MapProperties mapProperties = this.map.getProperties();
   Iterator<String> keyIterator = mapProperties.getKeys();
   while (keyIterator.hasNext()) {
     System.out.println(keyIterator.next());
   }
   _loadSpecialTilesRoutine(this.map);
   _loadLayersRoutine(this.map);
   _loadObjectsRoutine(objectLayer);
   loaded = true;
   if (listener != null) {
     listener.tiledMapLoaded(this);
   }
   return getLoaded();
 }