@RequestMapping(value = "/{kitDescriptorId}", method = RequestMethod.GET)
public ModelAndView setupForm(@PathVariable Long kitDescriptorId,
ModelMap model) throws IOException {
try {
KitDescriptor kitDescriptor = null;
if (kitDescriptorId == kitDescriptor.UNSAVED_ID) {
kitDescriptor = new KitDescriptor();
model.put("title", "New Kit Descriptor");
} else {
kitDescriptor = requestManager.getKitDescriptorById(kitDescriptorId);
model.put("title", "Kit Descriptor " + kitDescriptorId);
}