* @throws Exception
*/
public ActionForward doCommit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws Exception {
IpRestrictionForm ipRestrictionForm = (IpRestrictionForm)form;
ipRestrictionForm.apply();
Permission permission = ipRestrictionForm.isEditing() ? PolicyConstants.PERM_EDIT : PolicyConstants.PERM_CREATE;
PolicyUtil.checkPermission(PolicyConstants.IP_RESTRICTIONS_RESOURCE_TYPE, permission, request);
try {
if(ipRestrictionForm.isEditing()) {