interactionListForm.setInteractionListId(null);
interactionListForm.setInsertCommandEntryId(null);
interactionListForm.setInsertionType(2);
Object interactionListType = req.getSession().getAttribute("interactionListType");
if (interactionListType == null || !(interactionListType instanceof String)){
throw new BugException("invalid interaction list type");
}
// different cancel forwards according to interaction list type; must be extended for new interaction list types!
if (interactionListType.equals("invocation")){
return mapping.findForward("cancelledFromInvocationInteractions");
} else if (interactionListType.equals("fragment")){
return mapping.findForward("cancelledFromFragmentInteractions");
} else {
throw new BugException("invalid interaction list type `" + interactionListType + "`");
}
}