private void handleDeleteLeg() {
   String webKey = decodeStringArgument();
   Integer id = AcUspsDomesticSkeletonRouteLegTools.getIdFromWebKey(webKey);
   if (id == null) error("Invalid flight id.");
   getUspsDomesticSkeletonRouteLegService().delete(id);
   print();
 }
 private void handleEditLeg() {
   String webKey = decodeStringArgument();
   Integer id = AcUspsDomesticSkeletonRouteLegTools.getIdFromWebKey(webKey);
   if (id == null) error("Invalid flight id.");
   getPageSession().setUspsDomesticSkeletonRouteLegWebKey(webKey);
   AcUspsDomesticSkeletonRouteLegEditPage.instance.print();
 }