code: protected void initBundles (ResourceManager rmgr, String name)
      {
          // first we obtain the resource set from which we will load up our
          // tileset bundles
          ResourceBundle[] rbundles = rmgr.getResourceSet(name);
  
          // sanity check
          if (rbundles == null) {
              log.warning("Unable to fetch tileset resource set " +
                          "[name=" + name + "]. Perhaps it's not defined " +
                          "in the resource manager config?");
              return;
          }
  
          HashIntMap<TileSet> idmap = new HashIntMap<TileSet>();
          HashMap<String, Integer> namemap = Maps.newHashMap();
  
          // iterate over the resource bundles in the set, loading up the
          // tileset bundles in each resource bundle
          for (ResourceBundle rbundle : rbundles) {
              addBundle(idmap, namemap, rbundle);
          }
  
          // fill in our bundles array and wake up any waiters
          synchronized (this) {
              _idmap = idmap;
              _namemap = namemap;
              notifyAll();
          }
      }
docs: Initializes our bundles,