private synchronized Loader getLoader(int i) {
      while (myLoaders.size() < i + 1) {
        URL url = myUrls.poll();
        if (url == null) {
          return null;
        }

        if (myLoadersMap.containsKey(url)) {
          continue;
        }

        Loader loader;
        try {
          loader = getLoader(url, myLoaders.size());
          if (loader == null) {
            continue;
          }
        }
        catch (IOException ioexception) {
          continue;
        }

        myLoaders.add(loader);
        myLoadersMap.put(url, loader);
      }

      return myLoaders.get(i);
    }
private synchronized Loader getLoader(int i)