public boolean onFormSubmit() {
private boolean onFormSubmit() {
    public boolean onFormSubmit() {        DialingRule rule = getRule();        Collection selectedGateways = getRowsToDelete();        if (null != selectedGateways) {            rule.removeGateways(selectedGateways);            return true;        }        selectedGateways = getRowsToMoveDown();        if (null != selectedGateways) {            rule.moveGateways(selectedGateways, 1);            return true;        }        selectedGateways = getRowsToMoveUp();        if (null != selectedGateways) {            rule.moveGateways(selectedGateways, -1);            return true;        }        return false;    }