public ActionForward edit(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp) {
BreakInteractionEnterOrEditForm breakInteractionEnterOrEditForm = (BreakInteractionEnterOrEditForm)form;
BreakCommandEntry commandEntry = (BreakCommandEntry)commandEntryFromRequest(req);
if(commandEntry == null){
MessageResources resources = getResources(req);
throw new InputException(resources.getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"));
}
checkAccessRights(req, commandEntry.getGroup());
breakInteractionEnterOrEditForm.setCommandEntryId(commandEntry.getId());
breakInteractionEnterOrEditForm.setResultString(commandEntry.getResultString()==null?"":commandEntry.getResultString());
breakInteractionEnterOrEditForm.setSortLabel(commandEntry.getSortLabel());
breakInteractionEnterOrEditForm.setTypeOfBreak(commandEntry.getTypeOfBreak());
req.getSession().setAttribute("enterOrEdit", "edit");
req.getSession().setAttribute("formActionPath", req.getParameter("formActionPath"));
return mapping.findForward("edit");
}