try {
setValues(zoneSwitchIds, z.getValues(zoneSwitchIds));
offsetValues(zoneMergeIds, z.getValues(zoneMergeIds), true);
((ZoneObject) zones.remove(0)).zDispose();
if (postingEvents) {
presetEventHandler.postPresetEvent(new ZoneRemoveEvent(this, preset, voice, zone));
presetEventHandler.postPresetEvent(new ZoneRemoveEvent(this, preset, voice, IntPool.get(0)));
}
} catch (IllegalParameterIdException e) {
e.printStackTrace();
} catch (ParameterValueOutOfRangeException e) {
e.printStackTrace();
}
} else {
remapZones(zone.intValue());
if (postingEvents)
presetEventHandler.postPresetEvent(new ZoneRemoveEvent(this, preset, voice, zone));
}
}