/**
  * Adds all information to the boundary map
  *
  * @throws IOException
  */
 public static void init() throws IOException {
   logger.info("Loading boundary definitions...");
   File file = new File("data/boundaries.xml");
   if (file.exists()) {
     boundaries = XMLController.readXML(file);
     logger.info("Loaded " + boundaries.size() + " boundary definitions.");
   } else {
     logger.info("Boundary definitions not found.");
   }
 }
 /**
  * Loads the item spawn list from xml, and spawns all the item's.
  *
  * @throws IOException
  */
 public static void init() throws IOException {
   logger.info("Loading item spawns...");
   File file = new File("data/itemSpawns.xml");
   //		spawns = new ArrayList<ItemSpawn>();
   //		spawns.add(new ItemSpawn(new Item(223, 1), Location.create(2832, 9585, 0)));
   //		XMLController.writeXML(spawns, file);
   if (file.exists()) {
     spawns = XMLController.readXML(file);
     for (ItemSpawn spawn : spawns) {
       GroundItem groundItem = new GroundItem("", spawn.getItem(), spawn.getLocation());
       World.getWorld().register(groundItem, null);
       spawn.setGroundItem(groundItem);
     }
     World.getWorld().submit(new ItemSpawnTick());
     logger.info("Loaded " + spawns.size() + " item spawns.");
   } else {
     logger.info("Item spawns not found.");
   }
 }