return (Resource) resources.get(name);
Resource res = (Resource) resources.get(name);  if (res == null) { res = createResource(name); resources.put(name, res); } return res;
    public Resource getResource(String name) {        update();        return (Resource) resources.get(name);    }