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");
}