8889909192939495969798
consecutiveFailures = 0; for (String s : resourceList) { if (!mModel.hasResourceCalled(s)) { mModel.addResource(new Resource(s)); } } for (Resource r : mModel.getResources()) { if (!resourceList.contains(r.getName())) {