public String reapplyFilters(){
  List<Integer> selectedFilterIds=filterBean.getSelectedFilterIds();
  try {
    ScriptFilterUtil.applyFilters(selectedFilterIds,script);
    ScriptUtil.setScriptStepLabels(script);
    messages.info("Applied " + selectedFilterIds.size() + " filter(s) to \""+ script.getName()+ "\".");
    return "success";
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  messages.error("Error applying filters to \"" + script.getName() + "\".");
  return "failure";
}

public String reapplyFilters ( ) { List < Integer > selectedFilterIds = filterBean . getSelectedFilterIds ( ) ; try { ScriptFilterUtil . applyFilters ( selectedFilterIds , script ) ; ScriptUtil . setScriptStepLabels ( script ) ; messages . info ( "Applied " + selectedFilterIds . size ( ) + " filter(s) to \"" + script . getName ( ) + "\"." ) ; return "success" ; } catch ( Exception e ) { e . printStackTrace ( ) ; } messages . error ( "Error applying filters to \"" + script . getName ( ) + "\"." ) ; return "failure" ; }
applies all selected filters to the script currently being edited
