3132333435363738
case UPDATE: Resource existed = registry.getResource(resource.getName()); resourceTasks.add(new UpdateTask(resource, existed)); break; case REMOVE: resourceTasks.add(new RemoveTask(resource)); } }