public void removeWar(String name) {
        GenericObject toRemove = null;
        for (GenericObject war : getWars()) {
            if (war.getString("name").equals(name)) {
                toRemove = war;
                break;
            }
        }
        if (toRemove != null) {
            toRemove.getParent().removeChild(toRemove);
            hasUnsavedChanges = true;
        }
    }