}
public ActionForward createPaymentCodeMapping(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) {
final PaymentCodeMappingBean bean = getRenderedObject("paymentCodeMappingBean");
request.setAttribute("paymentCodeMappingBean", bean);
try {
bean.create();
} catch (final DomainException e) {
addActionMessage(request, e.getKey(), e.getArgs());
return mapping.findForward("createPaymentCodeMapping");
}
request.setAttribute("paymentCodeMappings", bean.getExecutionInterval().getPaymentCodeMappingsSet());
RenderUtils.invalidateViewState();
bean.clear();
return mapping.findForward("viewCodes");
}