*/
public ActionForward moveDown(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
PolicyUtil.checkPermission(PolicyConstants.IP_RESTRICTIONS_RESOURCE_TYPE, PolicyConstants.PERM_EDIT, request);
int id = Integer.parseInt(request.getParameter("id"));
SystemDatabase database = SystemDatabaseFactory.getInstance();
IpRestriction restriction1 = database.getIpRestriction(id);
String ipAddress = restriction1.getAddress();
String ipPermission = restriction1.getAllowed() ? "Allowed" : "Denied";
try {
List<IpRestriction> restrictions = Arrays.asList(database.getIpRestrictions());
database.swapIpRestrictions(restriction1, restrictions.get(restrictions.indexOf(restriction1) + 1));
fireCoreEvent(request, CoreEventConstants.IP_RESTRICTION_MOVE_DOWN, ipAddress, ipPermission, CoreEvent.STATE_SUCCESSFUL);
} catch (Exception e) {