inActionContext.getState().put("sourceTemplate", sourceTemplate);
// Destination zone is within the valid number of destination zones.
if (targetZoneNumber + 1 > destinationLayout.getNumberOfZones())
{
vex.addError("invalidZone", "ReorderGadgetAction told to move a gadget to a nonexistent zone.");
throw vex;
}
// Ensure that the gadget to be moved exists.
if (sourceTemplate == null)