public List getAllResources() throws IOException {
public synchronized List getAllResources() throws IOException {
    public List getAllResources() throws IOException {        update();        ArrayList allResources = new ArrayList();        allResources.addAll(resources.values());        for (int i = 0; i < repositories.length; i++) {            allResources.addAll(repositories[i].getAllResources());        }        return allResources;    }