}
public ActionForward deletePaymentCodeMapping(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) {
final PaymentCodeMapping codeMapping = getDomainObject(request, "paymentCodeMappingOid");
final PaymentCodeMappingBean bean = new PaymentCodeMappingBean();
bean.setExecutionInterval(codeMapping.getExecutionInterval());
request.setAttribute("paymentCodeMappingBean", bean);
request.setAttribute("paymentCodeMappings", bean.getExecutionInterval().getPaymentCodeMappingsSet());
try {
codeMapping.delete();
} catch (final DomainException e) {
addActionMessage(request, e.getMessage(), e.getArgs());
}
return mapping.findForward("viewCodes");