((Listener)listeners.get(i)).doneLoading();
listeners.get(i).doneLoading();
    private void done() {        initialized = true;        synchronized (m_instance) {            m_instance.notifyAll();        }        synchronized (listeners) {            for (int i = 0; i < listeners.size(); i++) {                ((Listener)listeners.get(i)).doneLoading();            }        }    }